def test_string_getitem_exhaustive_3(self):
        def f():
            x = "asd"
            def tryGetItem(ix):
                try:
                    return ("OK", x[ix])
                except Exception as e:
                    if isinstance(e, ValueError):
                        return "ValueError"
                    elif isinstance(e, IndexError):
                        return "IndexError"
                    elif isinstance(e, TypeError):
                        return "TypeError"
                    raise e

            sz = len(x)
            indices = range(-sz, sz) + [sz - 10, sz + 10, 1.0, None]

            res = []
            for ix in indices:
                res = res + [tryGetItem(ix)]

            return res

        self.equivalentEvaluationTest(f)
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/PurePython/InMemoryExecutorTestCases.py/InMemoryExecutorTestCases.test_string_getitem_exhaustive_3/original