t.Errorf("unexpected error %v", err)
}
if !testutil.DeepEqual(account, found) {
- t.Errorf("expected account %s to be recorded as %s", account, found)
+ t.Errorf("expected account %v to be recorded as %v", account, found)
}
}
t.Error(err)
}
if result != v {
- t.Errorf("bad result, %d want %s get %s", i, v, result)
+ t.Errorf("bad result, %d want %t get %t", i, v, result)
}
}
if len(ts.Bitmap) != (len(c.result)+7)/bitsPerByte {
if rootErr(err) != c.err {
t.Errorf("case %d: got error %s, want %s", i, err, c.err)
} else if *c.input != *c.output {
- t.Errorf("case %d: gasStatus %s, want %s;", i, c.input, c.output)
+ t.Errorf("case %d: gasStatus %v, want %v;", i, c.input, c.output)
}
}
}
t.Errorf("#%d got error %s, want %s", i, err, c.err)
}
if c.GasVaild != gasStatus.GasVaild {
- t.Errorf("#%d got GasVaild %s, want %s", i, gasStatus.GasVaild, c.GasVaild)
+ t.Errorf("#%d got GasVaild %t, want %t", i, gasStatus.GasVaild, c.GasVaild)
}
}
}
t.Run(fmt.Sprintf("case %d", i), func(t *testing.T) {
gotOk, err := txCtx.checkOutput(test.index, test.amount, test.assetID, test.vmVersion, test.code, false)
if g := errors.Root(err); g != test.wantErr {
- t.Errorf("checkOutput(%v, %v, %v, %x, %v, %x) err = %v, want %v",
+ t.Errorf("checkOutput(%v, %v, %x, %v, %x) err = %v, want %v",
test.index, test.amount, test.assetID, test.vmVersion, test.code,
g, test.wantErr)
return
}
if gotOk != test.wantOk {
- t.Errorf("checkOutput(%v, %v, %v, %x, %v, %x) ok = %v, want %v",
+ t.Errorf("checkOutput(%v, %v, %x, %v, %x) ok = %t, want %v",
test.index, test.amount, test.assetID, test.vmVersion, test.code,
gotOk, test.wantOk)
}