def test_global_instance(self): f = compile_function(llvmsnippet.global_instance, [int]) assert f(-1) == llvmsnippet.global_instance(-1) for i in range(20): x = f(i) y = llvmsnippet.global_instance(i) assert x == y
def test_global_instance(self): #issue we restart every test with a fresh set of globals f = compile_function(llvmsnippet.global_instance, [int]) assert f(-1) == llvmsnippet.global_instance(-1) for i in range(20): x = f(i) y = llvmsnippet.global_instance(i) assert x == y
def test_global_instance( self): #issue we restart every test with a fresh set of globals f = compile_function(llvmsnippet.global_instance, [int]) assert f(-1) == llvmsnippet.global_instance(-1) for i in range(20): x = f(i) y = llvmsnippet.global_instance(i) assert x == y