[pypy-svn] r74977 - pypy/branch/fast-ctypes/pypy/module/jitffi/test

getxsick at codespeak.net getxsick at codespeak.net
Mon May 31 17:25:40 CEST 2010


Author: getxsick
Date: Mon May 31 17:25:38 2010
New Revision: 74977

Modified:
   pypy/branch/fast-ctypes/pypy/module/jitffi/test/test_jitffi.py
Log:
more asserts

Modified: pypy/branch/fast-ctypes/pypy/module/jitffi/test/test_jitffi.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/module/jitffi/test/test_jitffi.py	(original)
+++ pypy/branch/fast-ctypes/pypy/module/jitffi/test/test_jitffi.py	Mon May 31 17:25:38 2010
@@ -28,8 +28,13 @@
         cls.w_lib_name = space.wrap(cls.preprare_c_example())
         cls.w_libc_name = space.wrap(get_libc_name())
 
-    def test_raw_callable(self):
+    def test_call(self):
         import jitffi
         lib = jitffi.CDLL(self.lib_name)
+
         res = lib.call('add_integers', 1, 2)
-        assert res == 3
+        assert 3 == res
+        res = lib.call('add_integers', -1, 2)
+        assert 1 == res
+        res = lib.call('add_integers', 0, 0)
+        assert 0 == res



More information about the Pypy-commit mailing list