aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-09 21:47:21 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-11 00:35:35 +0800
commit2e0694b606ba6cb2fc78dbda641deb1e8d156024 (patch)
treea11750508d7030538d803a16bced781d7b40e983 /rpc
parent858a6f0be9da459a87004755dffae2c3fc5544d2 (diff)
downloaddexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.tar
dexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.tar.gz
dexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.tar.bz2
dexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.tar.lz
dexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.tar.xz
dexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.tar.zst
dexon-2e0694b606ba6cb2fc78dbda641deb1e8d156024.zip
Updated test
Diffstat (limited to 'rpc')
-rw-r--r--rpc/args_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpc/args_test.go b/rpc/args_test.go
index fc10d68cf..81a2972cd 100644
--- a/rpc/args_test.go
+++ b/rpc/args_test.go
@@ -2519,6 +2519,14 @@ func TestSigArgs(t *testing.T) {
if err := json.Unmarshal([]byte(input), &args); err != nil {
t.Error(err)
}
+
+ if expected.From != args.From {
+ t.Errorf("From should be %v but is %v", expected.From, args.From)
+ }
+
+ if expected.Data != args.Data {
+ t.Errorf("Data should be %v but is %v", expected.Data, args.Data)
+ }
}
func TestSigArgsEmptyData(t *testing.T) {