2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-27 23:36:40 +00:00
restic/vendor/github.com/dustin/go-humanize/common_test.go

19 lines
285 B
Go
Raw Normal View History

2017-09-13 12:09:48 +00:00
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)
}
}
}