Fix up some ErrorF strings in tests.

One was missing a format directive. the others changed for consistency.
Appeases go vet.
This commit is contained in:
Owain G. Ainsworth 2013-08-06 18:00:05 +01:00
parent 26fb20e4ed
commit 17d37e3b06

View file

@ -3896,16 +3896,16 @@ func testOpcode(t *testing.T, test *detailedTest) {
if test.disassembly != "" {
dis0, err := engine.DisasmScript(0)
if err != nil {
t.Errorf("failed to disassemble script0 for %s: %v",
t.Errorf("%s: failed to disassemble script0: %v",
test.name, err)
}
if dis0 != "" {
t.Errorf("disassembly of empty script gave \"%s\"",
t.Errorf("%s: disassembly of empty script gave \"%s\"",
test.name, dis0)
}
disScript, err = engine.DisasmScript(1)
if err != nil {
t.Errorf("failed to disassemble script for %s: %v",
t.Errorf("%s: failed to disassemble script: %v",
test.name, err)
}
_, err = engine.DisasmScript(2)