[pypy-commit] cffi default: an extra test

arigo pypy.commits at gmail.com
Sat May 7 08:29:05 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2693:4e890638f9d1
Date: 2016-05-07 14:29 +0200
http://bitbucket.org/cffi/cffi/changeset/4e890638f9d1/

Log:	an extra test

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -158,6 +158,7 @@
         assert bool(cast(p, -1e-42)) is True
         assert bool(cast(p, INF))
         assert bool(cast(p, -INF))
+        assert bool(cast(p, float("nan")))
         assert int(cast(p, -150)) == -150
         assert int(cast(p, 61.91)) == 61
         assert long(cast(p, 61.91)) == 61


More information about the pypy-commit mailing list