From 821bc179d20699cf6813d85f8799be3fecac24eb Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 6 Jan 2008 09:02:59 +0100 Subject: [PATCH] test 'unsigned long' also against 8**sizeof(unsigned long) - 1 --- tests/run/r_vree_1.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run/r_vree_1.pyx b/tests/run/r_vree_1.pyx index 13c1744e..74d1ba13 100644 --- a/tests/run/r_vree_1.pyx +++ b/tests/run/r_vree_1.pyx @@ -14,9 +14,15 @@ __doc__ = """ 2147483648L >>> test(sys.maxint * 2 + 1) 4294967295L + + >>> test(8 ** unsigned_long_size() - 1) > sys.maxint + True """ def test(k): cdef unsigned long m m = k return m + +def unsigned_long_size(): + return sizeof(unsigned long) -- 2.26.2