mirror of
https://github.com/restic/restic.git
synced 2024-08-30 16:17:23 +02:00
19 lines
285 B
Go
19 lines
285 B
Go
|
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)
|
||
|
}
|
||
|
}
|
||
|
}
|