Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r202:80584114b8eb
Date: 2014-12-18 17:38 +0000
http://bitbucket.org/cffi/creflect/changeset/80584114b8eb/

Log:    more tests

diff --git a/zeffir/test/test_funcptr.py b/zeffir/test/test_funcptr.py
--- a/zeffir/test/test_funcptr.py
+++ b/zeffir/test/test_funcptr.py
@@ -15,6 +15,8 @@
 def test_get_fnptr():
     ffi, lib = support.compile_and_open('funcptr')
     fn = lib.get_fnptr(42)
+    assert fn == lib.get_fnptr(42)
+    assert fn != lib.get_fnptr(1)
     assert fn(100) == 142
     assert ffi.typeof(fn) == ffi.typeof("int(*)(int)")
     #
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to