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

@@ -0,0 +1,10 @@
# test builtin sorted
print(sorted(set(range(100))))
print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2)))
# need to use keyword argument
try:
sorted([], None)
except TypeError:
print("TypeError")