From bac56001459fa92eadc476531e6f567fd3bf4da1 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Fri, 25 Oct 2013 17:22:07 +0100 Subject: [PATCH] basic functionality test for decoderawtransactioncmd --- jsoncmd_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/jsoncmd_test.go b/jsoncmd_test.go index 270020fa..67b93e45 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -124,6 +124,17 @@ var jsoncmdtests = []struct { }, }, }, + { + name: "basic decoderawtransaction", + f: func() (Cmd, error) { + return NewDecodeRawTransactionCmd(float64(1), + "thisisahexidecimaltransaction") + }, + result: &DecodeRawTransactionCmd{ + id: float64(1), + HexTx: "thisisahexidecimaltransaction", + }, + }, { name: "basic ping", f: func() (Cmd, error) {