[pypy-svn] r27187 - pypy/dist/pypy/rpython/test
antocuni at codespeak.net
antocuni at codespeak.net
Sat May 13 20:06:54 CEST 2006
Author: antocuni
Date: Sat May 13 20:06:48 2006
New Revision: 27187
Modified:
pypy/dist/pypy/rpython/test/test_rstr.py
Log:
Added one more test for ootypesystem rstr
Modified: pypy/dist/pypy/rpython/test/test_rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rstr.py (original)
+++ pypy/dist/pypy/rpython/test/test_rstr.py Sat May 13 20:06:48 2006
@@ -122,13 +122,13 @@
res = self.interpret(fn, [ch])
assert res == fn(ch)
-def test_char_compare():
- res = interpret(lambda c1, c2: c1 == c2, ['a', 'b'])
- assert res is False
- res = interpret(lambda c1, c2: c1 == c2, ['a', 'a'])
- assert res is True
- res = interpret(lambda c1, c2: c1 <= c2, ['z', 'a'])
- assert res is False
+ def test_char_compare(self):
+ res = self.interpret(lambda c1, c2: c1 == c2, ['a', 'b'])
+ assert res is False
+ res = self.interpret(lambda c1, c2: c1 == c2, ['a', 'a'])
+ assert res is True
+ res = self.interpret(lambda c1, c2: c1 <= c2, ['z', 'a'])
+ assert res is False
def test_char_mul():
def fn(c, mul):
More information about the Pypy-commit
mailing list