diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-29 03:42:45 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-29 03:42:45 +0800 |
commit | b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4 (patch) | |
tree | 388b087271aeca6a8e163f2adf221dbee783ea0d /rpc/messages_test.go | |
parent | 696ff43db3e6d5261aba92df82f7602d5d82e964 (diff) | |
parent | 43d521e90e9516429dd0499ff88bf3f37ec78c48 (diff) | |
download | dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.gz dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.bz2 dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.lz dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.xz dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.zst dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.zip |
Merge pull request #579 from tgerring/rpcargs
RPC Args
Diffstat (limited to 'rpc/messages_test.go')
-rw-r--r-- | rpc/messages_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rpc/messages_test.go b/rpc/messages_test.go index 5274c91e4..91f0152dc 100644 --- a/rpc/messages_test.go +++ b/rpc/messages_test.go @@ -4,6 +4,15 @@ import ( "testing" ) +func TestInvalidTypeError(t *testing.T) { + err := NewInvalidTypeError("testField", "not string") + expected := "invalid type on field testField: not string" + + if err.Error() != expected { + t.Error(err.Error()) + } +} + func TestInsufficientParamsError(t *testing.T) { err := NewInsufficientParamsError(0, 1) expected := "insufficient params, want 1 have 0" |