diff --git a/network/meta_test.go b/network/meta_test.go index 39130e48..5806178b 100644 --- a/network/meta_test.go +++ b/network/meta_test.go @@ -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") + } +}