add test for SetInts function

This commit is contained in:
Kent Gruber 2018-05-02 13:18:12 -04:00
parent b8a0b86282
commit 00d6100214

View file

@ -45,3 +45,15 @@ func TestMetaGetIntsWith(t *testing.T) {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
func TestMetaSetInts(t *testing.T) {
example := buildExampleMeta()
example.SetInts("picat", []int{0, 1})
exp := strings.Join([]string{"0", "1"}, ",")
got := example.m["picat"]
if exp != got {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}