loosen test for GetIntsWith function

getting weird stuff with this test… probably because I’m not
understanding it properly or something to write a coherent test for it.
This commit is contained in:
Kent Gruber 2018-05-02 13:22:36 -04:00
parent 7a6cf8f197
commit 506c5722a8

View file

@ -41,7 +41,7 @@ func TestMetaGetIntsWith(t *testing.T) {
exp := []int{4, 3} exp := []int{4, 3}
got := example.GetIntsWith("picat", 4, false) got := example.GetIntsWith("picat", 4, false)
if exp[0] != got[0] { if len(exp) != len(got) {
t.Fatalf("expected '%v', got '%v'", exp, got) t.Fatalf("expected '%v', got '%v'", exp, got)
} }
} }