naitoh / py2rb

A code translator using AST from Python to Ruby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py2many tests/cases/assert.py fails

jayvdb opened this issue · comments

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"