Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Jul 1, 2023
1 parent a0814a3 commit d152256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opshin/tests/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ def validator(x: Dict[str, int]) -> str:
self.assertEqual(ret, exp, "dict string formatting returned wrong value")

@given(x=uplc_data)
@example(PlutusConstr(0, [PlutusByteString(b"'")]))
@hypothesis.settings(deadline=None)
def test_fmt_any(self, x):
x_data = pycardano.RawPlutusData(cbor2.loads(uplc.plutus_cbor_dumps(x)))
Expand All @@ -943,6 +944,7 @@ def validator(x: Anything) -> str:
ret = uplc_eval(f).value.decode("utf8")
if "\\'" in ret:
RawPlutusData = pycardano.RawPlutusData
CBORTag = cbor2.CBORTag
self.assertEqual(
eval(ret), x_data, "raw cbor string formatting returned wrong value"
)
Expand Down

0 comments on commit d152256

Please sign in to comment.