summaryrefslogtreecommitdiff
path: root/testing_and_debugging/slides.org
diff options
context:
space:
mode:
authorJovina2011-08-10 12:34:29 +0530
committerJovina2011-08-10 12:34:29 +0530
commit17e003518c2322cc9211760bac743ed3f03deaea (patch)
tree797228404c742795ad5237cda5d0e3b37f82506f /testing_and_debugging/slides.org
parent1853cd0a82a35d6f315e25cc986db6b4e9ce795e (diff)
downloadst-scripts-17e003518c2322cc9211760bac743ed3f03deaea.tar.gz
st-scripts-17e003518c2322cc9211760bac743ed3f03deaea.tar.bz2
st-scripts-17e003518c2322cc9211760bac743ed3f03deaea.zip
Correction to slides of 'testing_and_debugging' .
Diffstat (limited to 'testing_and_debugging/slides.org')
-rw-r--r--testing_and_debugging/slides.org14
1 files changed, 0 insertions, 14 deletions
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