From d5c20e445b193fad5cb4339f00e11212fdd39c0a Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Wed, 22 Feb 2017 14:56:35 +0530 Subject: Add basic slides for workshop on pytest. --- testing/code/gcd.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testing/code/gcd.py (limited to 'testing/code/gcd.py') diff --git a/testing/code/gcd.py b/testing/code/gcd.py new file mode 100644 index 0000000..12e4935 --- /dev/null +++ b/testing/code/gcd.py @@ -0,0 +1,9 @@ +def gcd(a, b): + while b != 0: + a, b = b, a%b + return a + +def atoi(s): + return int(s) + + -- cgit