From ddab2e09f3bb449ad3ef0cef032eb147b322bd97 Mon Sep 17 00:00:00 2001 From: Jovina Date: Fri, 26 Aug 2011 16:53:03 +0530 Subject: Minor correction to script & slides of 'testing_and_debugging'. --- testing_and_debugging/script.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing_and_debugging/script.rst') 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) -- cgit