diff options
author | Puneeth Chaganti | 2010-12-01 16:51:35 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2010-12-01 16:51:35 +0530 |
commit | f3a34dfb4e879f3eb7274704f44546aac4add88f (patch) | |
tree | 1cb0a8cc5dbd5ee2b374350915ed2addfa0fb447 /testing-debugging/quickref.tex | |
parent | 347866ed0d29db61ee062563b1e1616cfb85588c (diff) | |
download | st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.tar.gz st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.tar.bz2 st-scripts-f3a34dfb4e879f3eb7274704f44546aac4add88f.zip |
Renamed all LOs to match with their names in progress.org.
Diffstat (limited to 'testing-debugging/quickref.tex')
-rw-r--r-- | testing-debugging/quickref.tex | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/testing-debugging/quickref.tex b/testing-debugging/quickref.tex deleted file mode 100644 index e7e0d6e..0000000 --- a/testing-debugging/quickref.tex +++ /dev/null @@ -1,28 +0,0 @@ -Skeleton of a test:\\ -{\ex \lstinline| if __name__ == '__main__':|} -{\ex \lstinline| result = gcd(48, 64) |} -{\ex \lstinline| if result != 16: |} -{\ex \lstinline| print ``Test Failed'' |} -{\ex \lstinline| print ``Test Passed'' |} - - -\textbf{Testing} - -Get results from function or unit of code being tested.Compare it to original output. Test passed if they match else failed. - -\textbf{Code Style} -Four Space Indentation -79 character limit on a line -Funtions should be seperated by -blank line -Use Docstring -White space around operators - -Skeleton of try catch:\\ -{\ex \lstinline| try: |} -{\ex \lstinline| num = int(a) |} -{\ex \lstinline| except: |} -{\ex \lstinline| print ``Wrong input...'' |} - -Starting debugger in ipython:\\ -{\ex \lstinline| %debug |} |