コード例 #1
0
ファイル: test_class.py プロジェクト: TheDunn/flex-pypy
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: test_class.py プロジェクト: TheDunn/flex-pypy
 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
コード例 #4
0
 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