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:
parent
26fb20e4ed
commit
17d37e3b06
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue