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{ var classStringifyTests = []struct {
name string name string
scriptclass btcscript.ScriptClass scriptclass btcscript.ScriptClass
stringed string stringed string
}{ }{
{ {
name: "pubkey", name: "pubkey",
scriptclass: btcscript.PubKeyTy, scriptclass: btcscript.PubKeyTy,
stringed: "pubkey", stringed: "pubkey",
}, },
{ {
name: "pubkeyhash", name: "pubkeyhash",
scriptclass: btcscript.PubKeyHashTy, scriptclass: btcscript.PubKeyHashTy,
stringed: "pubkeyhash", stringed: "pubkeyhash",
}, },
{ {
name: "scripthash", name: "scripthash",
scriptclass: btcscript.ScriptHashTy, scriptclass: btcscript.ScriptHashTy,
stringed: "scripthash", stringed: "scripthash",
}, },
{ {
name: "multisigty", name: "multisigty",
scriptclass: btcscript.MultiSigTy, scriptclass: btcscript.MultiSigTy,
stringed: "multisig", stringed: "multisig",
}, },
{ {
name: "nonstandard", name: "broken",
scriptclass: btcscript.NonStandardTy,
stringed: "nonstandard",
},
{
name: "broken",
scriptclass: btcscript.ScriptClass(255), scriptclass: btcscript.ScriptClass(255),
stringed: "Invalid", stringed: "Invalid",
}, },
} }