From 17e003518c2322cc9211760bac743ed3f03deaea Mon Sep 17 00:00:00 2001 From: Jovina Date: Wed, 10 Aug 2011 12:34:29 +0530 Subject: Correction to slides of 'testing_and_debugging' . --- testing_and_debugging/slides.org | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'testing_and_debugging/slides.org') diff --git a/testing_and_debugging/slides.org b/testing_and_debugging/slides.org index f67d8d1..cd0e32b 100644 --- a/testing_and_debugging/slides.org +++ b/testing_and_debugging/slides.org @@ -93,20 +93,6 @@ if \_\_name\_\_ == '\_\_main\_\_': | 12 | 28 | 4 | | 18 | 36 | 18 | | 4678 | 39763 | 2339 | -* Automating tests -#+begin_src python - if __name__ == '__main__': - for line in open('lcmtestcases.txt'): - numbers = line.split() - x = int(numbers[0]) - y = int(numbers[1]) - result = int(numbers[2]) - if lcm(x, y) != result: - print "Failed lcm test for", x, y - else: - print "Test passed" -#+end_src - * Exercise 2 - For the same inputs as gcd write automated tests for LCM. * Solution 2 -- cgit