add test for Set function

This commit is contained in:
Kent Gruber 2018-05-02 13:17:06 -04:00
commit e4352e8a98

View file

@ -23,3 +23,11 @@ func TestMetaMarshalJSON(t *testing.T) {
t.Error("unable to marshal JSON from meta struct")
}
}
func TestMetaSet(t *testing.T) {
example := buildExampleMeta()
example.Set("picat", "<3")
if example.m["picat"] != "<3" {
t.Error("unable to set meta data in struct")
}
}