diff options
author | Jovina | 2011-08-26 16:53:03 +0530 |
---|---|---|
committer | Jovina | 2011-08-26 16:53:03 +0530 |
commit | ddab2e09f3bb449ad3ef0cef032eb147b322bd97 (patch) | |
tree | 49ba0d5d8351f7a5d3b462aa0866607ad4cd5e8f /testing_and_debugging/script.rst | |
parent | e369e2f72f0b9befd2a60ada3c227716c8517558 (diff) | |
download | st-scripts-ddab2e09f3bb449ad3ef0cef032eb147b322bd97.tar.gz st-scripts-ddab2e09f3bb449ad3ef0cef032eb147b322bd97.tar.bz2 st-scripts-ddab2e09f3bb449ad3ef0cef032eb147b322bd97.zip |
Minor correction to script & slides of 'testing_and_debugging'.
Diffstat (limited to 'testing_and_debugging/script.rst')
-rw-r--r-- | testing_and_debugging/script.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing_and_debugging/script.rst b/testing_and_debugging/script.rst index 28bc9f1..0ecc590 100644 --- a/testing_and_debugging/script.rst +++ b/testing_and_debugging/script.rst @@ -70,7 +70,7 @@ Open an editor and type the code shown on the slide and save it as gcd.py {{{ Show slide, gcd function }}} def gcd(a, b): - if a % b == 0: + if b == 0: return a return gcd(b, a%b) @@ -101,7 +101,7 @@ test case we know that the GCD is 16. So that is the expected output. {{{ Show slide,Test for gcd.py }}} def gcd(a, b): - if a % b == 0: + if b == 0: return a return gcd(b, a%b) |