summaryrefslogtreecommitdiff
path: root/testing_and_debugging/script.rst
diff options
context:
space:
mode:
authorJovina2011-08-26 16:53:03 +0530
committerJovina2011-08-26 16:53:03 +0530
commitddab2e09f3bb449ad3ef0cef032eb147b322bd97 (patch)
tree49ba0d5d8351f7a5d3b462aa0866607ad4cd5e8f /testing_and_debugging/script.rst
parente369e2f72f0b9befd2a60ada3c227716c8517558 (diff)
downloadst-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.rst4
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)