Skip to content

Commit

Permalink
Fix test error verbs found by go vet in the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Jan 29, 2015
1 parent 8e6abdb commit d7dbe25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions script_test.go
Expand Up @@ -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)
}
}
Expand All @@ -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)
}
}
2 changes: 1 addition & 1 deletion scriptbuilder_test.go
Expand Up @@ -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) {
Expand Down

0 comments on commit d7dbe25

Please sign in to comment.