From 3bfbb346dbc13e6456505a971fd5f2f0052129a0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 16 Mar 2009 21:09:16 +0100 Subject: [PATCH] test for ticket 237 --- tests/bugs/large_consts_T237.pyx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/bugs/large_consts_T237.pyx diff --git a/tests/bugs/large_consts_T237.pyx b/tests/bugs/large_consts_T237.pyx new file mode 100644 index 00000000..eb07aa95 --- /dev/null +++ b/tests/bugs/large_consts_T237.pyx @@ -0,0 +1,14 @@ +__doc__ = u""" +>>> add_large_pow() == 2**31 + 2**31 +True +>>> add_large_pow() == 2**32 +True +>>> add_large() == 2147483647 + 2147483647 +True +""" + +def add_large(): + return 2147483647 + 2147483647 + +def add_large_pow(): + return 2**31 + 2**31 -- 2.26.2