Skip to content

Commit 35ea382

Browse files
committed
Add test for PyObject.to_int() in test_high_level
1 parent f116165 commit 35ea382

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/tests/test_high_level.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ def test_from_string(self):
229229
def test_to_string(self):
230230
EGraph().check(PyObject("foo").to_string() == String("foo"))
231231

232+
def test_to_int(self):
233+
EGraph().check(PyObject(42).to_int() == i64(42))
234+
232235
def test_dict_update(self):
233236
original_d = {"foo": "bar"}
234237
res = EGraph().extract(PyObject(original_d).dict_update("foo", "baz")).value

0 commit comments

Comments
 (0)