From dbac6949e4eed5de9f9d4fe53a769f4efcb39e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz> Date: Mon, 27 Nov 2017 15:33:14 +0100 Subject: [PATCH] Unmanaged repo --- bashmath.sh | 10 ++++++++++ scsmath.py => pymath.py | 0 test.py | 13 ++----------- test.sh | 7 ------- 4 files changed, 12 insertions(+), 18 deletions(-) create mode 100644 bashmath.sh rename scsmath.py => pymath.py (100%) delete mode 100644 test.sh diff --git a/bashmath.sh b/bashmath.sh new file mode 100644 index 0000000..631b40b --- /dev/null +++ b/bashmath.sh @@ -0,0 +1,10 @@ +A =6 +B= 3 + +ADD = $(( A + B)) + +DIVIDE = $($A / $B) + +echo "Addind $B to $A is " $ADD + +echo "$A divided by $A is "$DIVIDE diff --git a/scsmath.py b/pymath.py similarity index 100% rename from scsmath.py rename to pymath.py diff --git a/test.py b/test.py index 6f1c713..7ae69d8 100644 --- a/test.py +++ b/test.py @@ -1,23 +1,14 @@ -from scsmath import * +from pymath import * import nose def test_add_integers(): assert add(5, 3) == 8 -def test_add_integers_zero(): - assert add(3, 0) == 3 - def test_add_floats(): assert add(1.5, 2.5) == 4 -def test_add_strings(): - nose.tools.assert_raises(AssertionError, add, 'paul', 'carol') - -def test_divide_integers_even(): +def test_divide_integers(): assert divide(2, 10) == 0.2 -def test_divide_integers_repetant(): - nose.tools.assert_almost_equal(divide(1, 3), 0.33333333, 7) - if __name__ == '__main__': nose.run() diff --git a/test.sh b/test.sh deleted file mode 100644 index 64505ef..0000000 --- a/test.sh +++ /dev/null @@ -1,7 +0,0 @@ -A = 5 -B= 6 - -C = $A + $B - -echo $C - -- GitLab