def test_list_hashing(self):
        def f(x):
            x = x[0]
            res = 0
            while x > 0:
                x = x - 1
                res = res + x
            return res

        t0 = time.time()
        self.evaluateWithExecutor(f, [1000000000])
        t1 = time.time()
        self.evaluateWithExecutor(f, [1000000001])
        t2 = time.time()
        self.evaluateWithExecutor(f, [1000000000])
        t3 = time.time()

        firstPass = t1 - t0
        secondPass = t2 - t1
        thirdPass = t2 - t3

        #the third pass should be _way_ faster.
        self.assertTrue(thirdPass / firstPass < .1)
        self.assertTrue(thirdPass / secondPass < .1)
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/PurePython/InMemoryExecutorTestCases.py/InMemoryExecutorTestCases.test_list_hashing/swapped operands of `-`