func TestDocumentGetStringSetReturnsAnEmptyStringSetWhenTheKeyDoesNotExist(t *testing.T) { doc := dynago.Document{} assert.Equal(t, dynago.StringSet{}, doc.GetStringSet("vals")) }
func TestDocumentGetStringSetPanic(t *testing.T) { doc := dynago.Document{"vals": "not-a-string-slice"} assert.Panics(t, func() { doc.GetStringSet("vals") }) }
func TestDocumentGetStringSetReturnsTheStringSetValue(t *testing.T) { doc := dynago.Document{"vals": dynago.StringSet{"val1", "val2"}} assert.Equal(t, dynago.StringSet{"val1", "val2"}, doc.GetStringSet("vals")) }