(t *testing.T)
| 1132 | } |
| 1133 | |
| 1134 | func TestSetArrayNew(t *testing.T) { |
| 1135 | branch := TreeBranch{} |
| 1136 | set, changed := branch.Set([]interface{}{"foo", 0, 0}, "uno") |
| 1137 | assert.Equal(t, true, changed) |
| 1138 | assert.Equal(t, "uno", set[0].Value.([]interface{})[0].([]interface{})[0]) |
| 1139 | } |
| 1140 | |
| 1141 | func TestSetExisting(t *testing.T) { |
| 1142 | branch := TreeBranch{ |