basic functionality test for decoderawtransactioncmd

This commit is contained in:
Owain G. Ainsworth 2013-10-25 17:22:07 +01:00
parent 6227c446d3
commit bac5600145

View file

@ -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) {