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

@@ -23,3 +23,9 @@ print(max(lst, key=lambda x:x))
print(max(lst, key=lambda x:-x))
print(max(1, 2, 3, 4, key=lambda x:-x))
print(max(4, 3, 2, 1, key=lambda x:-x))
# need at least 1 item in the iterable
try:
min([])
except ValueError:
print("ValueError")