Files
dolt/vendor/github.com/clbanning/mxj/remove_test.go
T
Aaron Boodman ed00b9978a vendor changes
2016-02-08 23:11:46 -08:00

22 lines
314 B
Go

package mxj
import (
"testing"
)
func TestRemove(t *testing.T) {
m := map[string]interface{}{
"Div": map[string]interface{}{
"Colour": "blue",
},
}
mv := Map(m)
err := mv.Remove("Div.Colour")
if err != nil {
t.Fatal(err)
}
if mv.Exists("Div.Colour") {
t.Fatal("removed key still remain")
}
}