Skip to content

Commit 1dbaa4a

Browse files
committed
refactor: use require.Empty()
1 parent 1166b68 commit 1dbaa4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/stack.libevm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestMutableStack(t *testing.T) {
1919
return *u256
2020
}
2121

22-
require.Len(t, s.Data(), 0)
22+
require.Empty(t, s.Data(), "new stack")
2323
want := []uint256.Int{push(42), push(314159), push(142857)}
2424
require.Equalf(t, want, s.Data(), "after pushing %d values to empty stack", len(want))
2525
require.Equal(t, want[len(want)-1], m.Pop(), "popped value")

0 commit comments

Comments
 (0)