This commit is contained in:
Dave Collins 2013-11-14 14:39:57 -06:00
parent 1ca389aa3d
commit e2770d3691

View file

@ -2665,40 +2665,35 @@ nexttest:
}
}
var classStringifyTests = []struct{
name string
var classStringifyTests = []struct {
name string
scriptclass btcscript.ScriptClass
stringed string
stringed string
}{
{
name: "pubkey",
name: "pubkey",
scriptclass: btcscript.PubKeyTy,
stringed: "pubkey",
stringed: "pubkey",
},
{
name: "pubkeyhash",
name: "pubkeyhash",
scriptclass: btcscript.PubKeyHashTy,
stringed: "pubkeyhash",
stringed: "pubkeyhash",
},
{
name: "scripthash",
name: "scripthash",
scriptclass: btcscript.ScriptHashTy,
stringed: "scripthash",
stringed: "scripthash",
},
{
name: "multisigty",
name: "multisigty",
scriptclass: btcscript.MultiSigTy,
stringed: "multisig",
stringed: "multisig",
},
{
name: "nonstandard",
scriptclass: btcscript.NonStandardTy,
stringed: "nonstandard",
},
{
name: "broken",
name: "broken",
scriptclass: btcscript.ScriptClass(255),
stringed: "Invalid",
stringed: "Invalid",
},
}