]> git.friedersdorff.com Git - max/python_unittesting.git/commitdiff
Add standalone unit testing functions
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 4 Mar 2019 20:09:27 +0000 (20:09 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 4 Mar 2019 20:09:27 +0000 (20:09 +0000)
1_standalone.py [new file with mode: 0644]

diff --git a/1_standalone.py b/1_standalone.py
new file mode 100644 (file)
index 0000000..7c79d25
--- /dev/null
@@ -0,0 +1,9 @@
+def test_square_of_2():
+    assert 2**2 == 4
+
+def test_fibonacci_of_5():
+    assert 1+1+2+3+5 == 12
+
+def test_fibonacci_of_10():
+    # This should fail
+    assert 1+1+2+3+5+8+0 == 143