from .. utils import TranspileTestCase, BuiltinFunctionTestCase


class StrTests(TranspileTestCase):
    def test_escape(self):
        self.assertCodeExecution("""
            print(str("".join(chr(x) for x in range(128))))
            """)


class BuiltinStrFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
    functions = ["str"]

    not_implemented = [
        'test_noargs',
        'test_class',
        'test_NotImplemented',
    ]
