Skip to content

Commit

Permalink
modify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Sep 30, 2023
1 parent bc68427 commit 008e702
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/parser/functions/test_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,11 @@ def _get_contract():
if (
(start + length > data_length and literal_start and literal_length)
or (literal_length and length > data_length)
or (location == "literal" and len(bytesdata) > length_bound)
or (literal_start and start > data_length)
or (literal_length and length < 1)
):
assert_compile_failed(lambda: _get_contract(), (ArgumentException, TypeMismatch))
elif len(bytesdata) > data_length:
elif len(bytesdata) > data_length or (location == "literal" and len(bytesdata) > length_bound):
# deploy fail
assert_tx_failed(lambda: _get_contract())
elif start + length > len(bytesdata):
Expand Down

0 comments on commit 008e702

Please sign in to comment.