mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
core/vm: fix test error message (#35134)
This commit is contained in:
parent
9059157eba
commit
116314baf9
1 changed files with 1 additions and 1 deletions
|
|
@ -724,7 +724,7 @@ func TestRandom(t *testing.T) {
|
||||||
)
|
)
|
||||||
opRandom(&pc, evm, &ScopeContext{nil, stack, nil})
|
opRandom(&pc, evm, &ScopeContext{nil, stack, nil})
|
||||||
if have, want := stack.len(), 1; have != want {
|
if have, want := stack.len(), 1; have != want {
|
||||||
t.Errorf("test '%v': want %d item(s) on stack, have %d: ", tt.name, have, want)
|
t.Errorf("test '%v': want %d item(s) on stack, have %d: ", tt.name, want, have)
|
||||||
}
|
}
|
||||||
actual := stack.pop()
|
actual := stack.pop()
|
||||||
expected, overflow := uint256.FromBig(new(big.Int).SetBytes(tt.random.Bytes()))
|
expected, overflow := uint256.FromBig(new(big.Int).SetBytes(tt.random.Bytes()))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue