diff --git a/script_test.go b/script_test.go index 388bd8d2..e8d9c372 100644 --- a/script_test.go +++ b/script_test.go @@ -4752,7 +4752,7 @@ func TestHasCanonicalPushes(t *testing.T) { for i, test := range tests { if btcscript.HasCanonicalPushes(test.script) != test.expected { 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) } } @@ -4778,7 +4778,7 @@ func TestIsPushOnlyScript(t *testing.T) { if btcscript.IsPushOnlyScript(test.script) != test.expected { t.Errorf("IsPushOnlyScript (%s) wrong result\n"+ - "got: %x\nwant: %x", test.name, true, + "got: %v\nwant: %v", test.name, true, test.expected) } } diff --git a/scriptbuilder_test.go b/scriptbuilder_test.go index 265ba882..198dfda2 100644 --- a/scriptbuilder_test.go +++ b/scriptbuilder_test.go @@ -173,7 +173,7 @@ func TestScriptBuilderAddUint64(t *testing.T) { result, err := builder.Script() if err != nil { t.Errorf("ScriptBuilder.AddUint64 #%d (%s) unexpected "+ - "error: %v", err) + "error: %v", i, test.name, err) continue } if !bytes.Equal(result, test.expected) {