From 19c4e498ca0fc4e4f4b2373fb795babbe8f54ab2 Mon Sep 17 00:00:00 2001 From: Tomasz Dwojak Date: Sun, 19 Nov 2017 14:52:25 +0100 Subject: [PATCH] update test task --- .idea/vcs.xml | 6 ++++++ labs02/test_task.py | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/labs02/test_task.py b/labs02/test_task.py index 5879768..6875a37 100755 --- a/labs02/test_task.py +++ b/labs02/test_task.py @@ -6,7 +6,7 @@ def suma(a, b): """ Napisz funkcję, która zwraca sumę elementów. """ - pass + return a + b def tests(f): inputs = [(2, 3), (0, 0), (1, 1)] @@ -18,5 +18,4 @@ def tests(f): break return "TESTS PASSED" -if __name__ == "__main__": - print(tests(suma)) +print(tests(suma))