Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 8, 2024
1 parent 1f897bd commit fcb96a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/compiler/test_opcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def test_version_check(evm_version):
assert opcodes.version_check(begin=evm_version)
assert opcodes.version_check(end=evm_version)
assert opcodes.version_check(begin=evm_version, end=evm_version)
if evm_version not in ("berlin"):
assert not opcodes.version_check(end="berlin")
berlin_check = opcodes.version_check(begin="berlin_check")
assert berlin_check == (
opcodes.EVM_VERSIONS[evm_version] >= opcodes.EVM_VERSIONS["berlin_check"]
if evm_version not in ("london",):
assert not opcodes.version_check(end="london")
london_check = opcodes.version_check(begin="london")
assert london_check == (
opcodes.EVM_VERSIONS[evm_version] >= opcodes.EVM_VERSIONS["london"]
)


Expand Down

0 comments on commit fcb96a4

Please sign in to comment.