From d5755b6965274a191d46a8c8466943c2b8cfe668 Mon Sep 17 00:00:00 2001 From: Tomasz Dwojak Date: Sun, 19 Nov 2017 11:34:44 +0100 Subject: [PATCH 1/3] update test task --- labs02/test_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/labs02/test_task.py b/labs02/test_task.py index 26661d3..5879768 100755 --- a/labs02/test_task.py +++ b/labs02/test_task.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- @@ -6,7 +6,7 @@ def suma(a, b): """ Napisz funkcję, która zwraca sumę elementów. """ - return a + b + pass def tests(f): inputs = [(2, 3), (0, 0), (1, 1)] From 19c4e498ca0fc4e4f4b2373fb795babbe8f54ab2 Mon Sep 17 00:00:00 2001 From: Tomasz Dwojak Date: Sun, 19 Nov 2017 14:52:25 +0100 Subject: [PATCH 2/3] 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)) From b62e43effe8200d86782a335ef06533345c2620f Mon Sep 17 00:00:00 2001 From: Tomasz Dwojak Date: Sun, 19 Nov 2017 15:38:59 +0100 Subject: [PATCH 3/3] Fix tassk no. 10 --- labs02/task10.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs02/task10.py b/labs02/task10.py index f380f0a..58d40d2 100644 --- a/labs02/task10.py +++ b/labs02/task10.py @@ -13,7 +13,7 @@ def pokemon_speak(text): def tests(f): - inputs = [['pokemon'], ['do not want'], 'POKEMON'] + inputs = [['pokemon'], ['do not want'], ['POKEMON']] outputs = ['PoKeMoN', 'Do nOt wAnT', 'POKEMON'] for input, output in zip(inputs, outputs):