tests: Add missing tests for builtins, and many other things.

This commit is contained in:
Damien George
2015-04-04 22:05:30 +01:00
parent 7e758b1cf8
commit 9dd3640464
37 changed files with 406 additions and 14 deletions

View File

@@ -16,3 +16,7 @@ for i in range(-len(s), len(s)):
# Test UTF-8 encode and decode
enc = s.encode()
print(enc, enc.decode() == s)
# printing of unicode chars using repr
# TODO we don't do this correctly
#print(repr(s))

View File

@@ -0,0 +1,5 @@
# test builtin chr with unicode characters
print(chr(945))
print(chr(0x800))
print(chr(0x10000))

View File

@@ -0,0 +1,3 @@
# test builtin ord with unicode characters
print(ord('α'))