[pypy-commit] creflect default: more tests
arigo
noreply at buildbot.pypy.org
Thu Dec 18 23:38:28 CET 2014
Author: Armin Rigo <arigo at tunes.org>
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)")
#
More information about the pypy-commit
mailing list