From: Maximilian Friedersdorff Date: Mon, 4 Mar 2019 20:09:27 +0000 (+0000) Subject: Add standalone unit testing functions X-Git-Url: https://git.friedersdorff.com/?p=max%2Fpython_unittesting.git;a=commitdiff_plain;h=bd56787b1e59060bca1cb53448dfbc4074fe1d38 Add standalone unit testing functions --- bd56787b1e59060bca1cb53448dfbc4074fe1d38 diff --git a/1_standalone.py b/1_standalone.py new file mode 100644 index 0000000..7c79d25 --- /dev/null +++ b/1_standalone.py @@ -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