You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
285 B
19 lines
285 B
9 years ago
|
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)
|
||
|
}
|
||
|
}
|
||
|
}
|