Commits

Antonio Cuni committed b5e5638

unskip&fix test_{upper,lower}_char for ootype (this fixes also the correspondent CLI tests)

Comments (0)

Files changed (3)

pypy/rpython/lltypesystem/rstr.py

             i += 1
         return result
 
-    def ll_upper_char(ch):
-        if 'a' <= ch <= 'z':
-            ch = chr(ord(ch) - 32)
-        return ch
-
     @jit.elidable
     def ll_lower(s):
         s_chars = s.chars
             i += 1
         return result
 
-    def ll_lower_char(ch):
-        if 'A' <= ch <= 'Z':
-            ch = chr(ord(ch) + 32)
-        return ch
-
     def ll_join(s, length, items):
         s_chars = s.chars
         s_len = len(s_chars)

pypy/rpython/rstr.py

         c = ord(ch)
         return 97 <= c <= 122
 
+    def ll_upper_char(ch):
+        if 'a' <= ch <= 'z':
+            ch = chr(ord(ch) - 32)
+        return ch
+
+    def ll_lower_char(ch):
+        if 'A' <= ch <= 'Z':
+            ch = chr(ord(ch) + 32)
+        return ch
+
     def ll_char_hash(ch):
         return ord(ch)
 

pypy/rpython/test/test_rstr.py

 
 
 class TestOOtype(BaseTestRstr, OORtypeMixin):
-    def test_lower_char(self):
-        py.test.skip()
-
-    def test_upper_char(self):
-        py.test.skip()
+    pass