Skip to content

Commit

Permalink
Also run sub
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron authored Sep 4, 2024
1 parent 09c8f5a commit c15bf74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opshin/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3038,7 +3038,7 @@ def validator(a: bool, b:bool)-> int:
def test_cast_bool_to_int_gt(self, a: bool, b: bool):
source_code = """
def validator(a: bool, b:bool)-> int:
return 5+(a>b)
return 5-(a>b)
"""
res = eval_uplc_value(source_code, a, b)
self.assertEquals(res, 5 + (a > b))
self.assertEquals(res, 5 - (a > b))

0 comments on commit c15bf74

Please sign in to comment.