1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-11-13 01:42:41 +00:00
mondash/vendor/github.com/flosch/go-humanize/common_test.go

19 lines
285 B
Go
Raw Normal View History

package humanize
import (
"testing"
)
type testList []struct {
name, got, exp string
}
func (tl testList) validate(t *testing.T) {
for _, test := range tl {
if test.got != test.exp {
t.Errorf("On %v, expected '%v', but got '%v'",
test.name, test.exp, test.got)
}
}
}