naitoh / py2rb

A code translator using AST from Python to Ruby.
MIT License
134 stars 17 forks source link

py2many tests/cases/assert.py fails #13

Open jayvdb opened 3 years ago

jayvdb commented 3 years ago

https://github.com/adsharma/py2many/blob/main/tests/cases/assert.py is roughly

#!/usr/bin/env python3

def compare_assert(a: int, b: int):
    assert a == b
    assert not (0 == 1)

if __name__ == "__main__":
    assert True
    assert not False
    compare_assert(1, 1)
    ...

The assert of compare_assert fails, with a ruby "unhandled exception"