[pypy-commit] pypy unsigned-dtypes: fix test
justinpeel
noreply at buildbot.pypy.org
Thu Sep 22 20:10:18 CEST 2011
Author: Justin Peel <notmuchtotell at gmail.com>
Branch: unsigned-dtypes
Changeset: r47401:3868cf6ce395
Date: 2011-09-22 18:08 +0000
http://bitbucket.org/pypy/pypy/changeset/3868cf6ce395/
Log: fix test
diff --git a/pypy/jit/metainterp/test/test_longlong.py b/pypy/jit/metainterp/test/test_longlong.py
--- a/pypy/jit/metainterp/test/test_longlong.py
+++ b/pypy/jit/metainterp/test/test_longlong.py
@@ -130,12 +130,12 @@
def test_floats_ulonglong(self):
def f(i):
- # i == 10**17
- f = i * 123.5
+ # i == 1000000000
+ f = i * 12350000000.0
n = r_ulonglong(f)
compare(n, -1419508847, 538116096)
return float(n)
- res = self.interp_operations(f, [10**17])
+ res = self.interp_operations(f, [1000000000])
assert res == 12350000000000000000.0
def test_unsigned_compare_ops(self):
More information about the pypy-commit
mailing list