[pypy-commit] pypy refactor-signature: an extra test just because
fijal
noreply at buildbot.pypy.org
Thu Dec 15 09:53:55 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: refactor-signature
Changeset: r50534:c0dff290b339
Date: 2011-12-15 10:44 +0200
http://bitbucket.org/pypy/pypy/changeset/c0dff290b339/
Log: an extra test just because
diff --git a/pypy/module/micronumpy/test/test_compile.py b/pypy/module/micronumpy/test/test_compile.py
--- a/pypy/module/micronumpy/test/test_compile.py
+++ b/pypy/module/micronumpy/test/test_compile.py
@@ -137,6 +137,16 @@
interp = self.run(code)
assert interp.results[0].value.value == 15
+ def test_sum2(self):
+ code = """
+ a = |30|
+ b = a + a
+ sum(b)
+ """
+ interp = self.run(code)
+ assert interp.results[0].value.value == 30 * (30 - 1)
+
+
def test_array_write(self):
code = """
a = [1,2,3,4,5]
More information about the pypy-commit
mailing list