Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r47578:4d3c8a23aae1 Date: 2011-09-24 13:17 -0400 http://bitbucket.org/pypy/pypy/changeset/4d3c8a23aae1/
Log: a failing test. diff --git a/pypy/jit/metainterp/test/test_string.py b/pypy/jit/metainterp/test/test_string.py --- a/pypy/jit/metainterp/test/test_string.py +++ b/pypy/jit/metainterp/test/test_string.py @@ -575,4 +575,18 @@ n -= 1 return result res = self.meta_interp(main, [9]) - assert res == main(9) \ No newline at end of file + assert res == main(9) + + def test_virtual_copystringcontent2(self): + jitdriver = JitDriver(reds=['n', 'result'], greens=[]) + def main(n): + result = 0 + while n >= 0: + jitdriver.jit_merge_point(n=n, result=result) + b = StringBuilder(6) + b.append("Hello!") + result += ord((b.build() + "xyz")[0]) + n -= 1 + return result + res = self.meta_interp(main, [9]) + assert res == main(9) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit