aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-11-12 03:05:27 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-11-12 03:05:27 +0800
commit5c5df21e3d8768481c2bc1b6e9475099590e10be (patch)
tree022955dec7ef6527a6f30d3adb82ce4671e111a2
parent12e8404f8fb0409c6db2a48ff4cc52c7aa81f72d (diff)
downloaddexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.tar
dexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.tar.gz
dexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.tar.bz2
dexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.tar.lz
dexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.tar.xz
dexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.tar.zst
dexon-5c5df21e3d8768481c2bc1b6e9475099590e10be.zip
Update TestDeleteFromByteSlice
Still broken
-rw-r--r--ethutil/bytes_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ethutil/bytes_test.go b/ethutil/bytes_test.go
index d65336631..179a8c7ef 100644
--- a/ethutil/bytes_test.go
+++ b/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)
}
*/