We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
require.Empty()
1 parent 1166b68 commit 1dbaa4aCopy full SHA for 1dbaa4a
core/vm/stack.libevm_test.go
@@ -19,7 +19,7 @@ func TestMutableStack(t *testing.T) {
19
return *u256
20
}
21
22
- require.Len(t, s.Data(), 0)
+ require.Empty(t, s.Data(), "new stack")
23
want := []uint256.Int{push(42), push(314159), push(142857)}
24
require.Equalf(t, want, s.Data(), "after pushing %d values to empty stack", len(want))
25
require.Equal(t, want[len(want)-1], m.Pop(), "popped value")
0 commit comments