Explorar o código

Update TestDeleteFromByteSlice

Still broken
Taylor Gerring %!s(int64=11) %!d(string=hai) anos
pai
achega
5c5df21e3d
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      ethutil/bytes_test.go

+ 2 - 3
ethutil/bytes_test.go

@@ -23,9 +23,8 @@ func (s *BytesSuite) TestDeleteFromByteSlice(c *checker.C) {
 	slice := []byte{1, 2, 3, 4}
 	exp := []byte{1, 4}
 	res := DeleteFromByteSlice(data, slice)
-	if bytes.Compare(res, exp) != 0 {
-		t.Errorf("Expected % x Got % x", exp, res)
-	}
+
+	c.Assert(res, checker.DeepEquals, exp)
 }
 
 */