diff options
author | Martin Holst Swende <martin@swende.se> | 2017-12-21 17:26:30 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2017-12-23 02:26:52 +0800 |
commit | 73d4a57d47d3381faa0516b319fa5598e71681f9 (patch) | |
tree | 20f6860fb4a25ba584ac6899ba7ed8bc23e38219 /accounts/abi/abi_test.go | |
parent | 81d4cafb324d8c4352a40d2cf33c2085d029cd37 (diff) | |
download | dexon-73d4a57d47d3381faa0516b319fa5598e71681f9.tar.gz dexon-73d4a57d47d3381faa0516b319fa5598e71681f9.tar.zst dexon-73d4a57d47d3381faa0516b319fa5598e71681f9.zip |
acounts/abi: refactor abi, generalize abi pack/unpack to Arguments
Diffstat (limited to 'accounts/abi/abi_test.go')
-rw-r--r-- | accounts/abi/abi_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go index 644a388e3..1ae351730 100644 --- a/accounts/abi/abi_test.go +++ b/accounts/abi/abi_test.go @@ -22,7 +22,6 @@ import ( "fmt" "log" "math/big" - "reflect" "strings" "testing" @@ -75,9 +74,12 @@ func TestReader(t *testing.T) { } // deep equal fails for some reason - t.Skip() - if !reflect.DeepEqual(abi, exp) { - t.Errorf("\nabi: %v\ndoes not match exp: %v", abi, exp) + //t.Skip() + // Check with String() instead + expS := fmt.Sprintf("%v",exp) + gotS := fmt.Sprintf("%v", abi) + if expS != gotS { + t.Errorf("\nGot abi: \n%v\ndoes not match expected \n%v", abi, exp) } } |