PR comments

This commit is contained in:
Ryan Cox
2018-10-08 10:13:05 -07:00
parent f2f1125e44
commit e6558fb9fc

View File

@@ -182,6 +182,10 @@ func TestDeepCopy(t *testing.T) {
rm2 := rm1.DeepCopy()
if &rm1 == &rm2 {
t.Fatalf("DeepCopy returned a reference to itself instead of a copy")
}
if !reflect.DeepEqual(rm1, rm2) {
t.Fatalf("%v doesn't equal it's deep copy %v", rm1, rm2)
}