[pypy-svn] r77475 - pypy/branch/fast-forward/pypy/objspace/std/test
afa at codespeak.net
afa at codespeak.net
Wed Sep 29 23:50:11 CEST 2010
Author: afa
Date: Wed Sep 29 23:50:10 2010
New Revision: 77475
Modified:
pypy/branch/fast-forward/pypy/objspace/std/test/test_bytes.py
Log:
Add basic comparison test
Modified: pypy/branch/fast-forward/pypy/objspace/std/test/test_bytes.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/test/test_bytes.py (original)
+++ pypy/branch/fast-forward/pypy/objspace/std/test/test_bytes.py Wed Sep 29 23:50:10 2010
@@ -38,6 +38,7 @@
assert list(bytearray('hello')) == [104, 101, 108, 108, 111]
def test_compare(self):
+ assert bytearray('hello') == bytearray('hello')
assert bytearray('hello') < bytearray('world')
assert bytearray('world') > bytearray('hello')
@@ -73,3 +74,4 @@
r = bytearray('1\t2').expandtabs(5)
assert type(r) is bytearray and r == '1 2'
+
More information about the Pypy-commit
mailing list