diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/list_pop.py | 11 | ||||
| -rw-r--r-- | tests/basics/tests/list_sum.py (renamed from tests/basics/tests/list2.py) | 0 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/basics/tests/list_pop.py b/tests/basics/tests/list_pop.py new file mode 100644 index 000000000..bb2ccc6d6 --- /dev/null +++ b/tests/basics/tests/list_pop.py @@ -0,0 +1,11 @@ +# list poppin' +a = [1, 2, 3] +print(a.pop()) +print(a.pop()) +print(a.pop()) +try: + print(a.pop()) +except IndexError: + print("IndexError raised") +else: + raise AssertionError("No IndexError raised") diff --git a/tests/basics/tests/list2.py b/tests/basics/tests/list_sum.py index e46042b86..e46042b86 100644 --- a/tests/basics/tests/list2.py +++ b/tests/basics/tests/list_sum.py |
