Fresh dep ensure

This commit is contained in:
Mike Cronce
2018-11-26 13:23:56 -05:00
parent 93cb8a04d7
commit 407478ab9a
9016 changed files with 551394 additions and 279685 deletions

View File

@ -46,12 +46,12 @@ func TestPairsMD(t *testing.T) {
func TestCopy(t *testing.T) {
const key, val = "key", "val"
orig := Pairs(key, val)
copy := orig.Copy()
if !reflect.DeepEqual(orig, copy) {
t.Errorf("copied value not equal to the original, got %v, want %v", copy, orig)
cpy := orig.Copy()
if !reflect.DeepEqual(orig, cpy) {
t.Errorf("copied value not equal to the original, got %v, want %v", cpy, orig)
}
orig[key][0] = "foo"
if v := copy[key][0]; v != val {
if v := cpy[key][0]; v != val {
t.Errorf("change in original should not affect copy, got %q, want %q", v, val)
}
}