Fix test error verbs found by go vet in the tests.
This commit is contained in:
parent
8e6abdb125
commit
d7dbe25d97
2 changed files with 3 additions and 3 deletions
|
@ -4752,7 +4752,7 @@ func TestHasCanonicalPushes(t *testing.T) {
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
if btcscript.HasCanonicalPushes(test.script) != test.expected {
|
if btcscript.HasCanonicalPushes(test.script) != test.expected {
|
||||||
t.Errorf("HasCanonicalPushes #%d (%s) wrong result\n"+
|
t.Errorf("HasCanonicalPushes #%d (%s) wrong result\n"+
|
||||||
"got: %x\nwant: %x", i, test.name, true,
|
"got: %v\nwant: %v", i, test.name, true,
|
||||||
test.expected)
|
test.expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4778,7 +4778,7 @@ func TestIsPushOnlyScript(t *testing.T) {
|
||||||
|
|
||||||
if btcscript.IsPushOnlyScript(test.script) != test.expected {
|
if btcscript.IsPushOnlyScript(test.script) != test.expected {
|
||||||
t.Errorf("IsPushOnlyScript (%s) wrong result\n"+
|
t.Errorf("IsPushOnlyScript (%s) wrong result\n"+
|
||||||
"got: %x\nwant: %x", test.name, true,
|
"got: %v\nwant: %v", test.name, true,
|
||||||
test.expected)
|
test.expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,7 +173,7 @@ func TestScriptBuilderAddUint64(t *testing.T) {
|
||||||
result, err := builder.Script()
|
result, err := builder.Script()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("ScriptBuilder.AddUint64 #%d (%s) unexpected "+
|
t.Errorf("ScriptBuilder.AddUint64 #%d (%s) unexpected "+
|
||||||
"error: %v", err)
|
"error: %v", i, test.name, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if !bytes.Equal(result, test.expected) {
|
if !bytes.Equal(result, test.expected) {
|
||||||
|
|
Loading…
Reference in a new issue