summaryrefslogtreecommitdiff
path: root/day2/session3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'day2/session3.tex')
-rw-r--r--day2/session3.tex38
1 files changed, 28 insertions, 10 deletions
diff --git a/day2/session3.tex b/day2/session3.tex
index d2daa20..5d0f6ef 100644
--- a/day2/session3.tex
+++ b/day2/session3.tex
@@ -22,7 +22,7 @@
\mode<presentation>
{
- \usetheme{CambridgeUS}
+ \usetheme{Warsaw}
%\usetheme{Boadilla}
%\usetheme{default}
\useoutertheme{split}
@@ -477,7 +477,7 @@ x, y, z = mgrid[-50:50:20j,-50:50:20j,
\begin{itemize}
\item Writing tests is really simple!
- \item Using nose
+ \item Using nose.
\item Example!
\end{itemize}
@@ -510,7 +510,7 @@ if __name__ == '__main__':
import nose
nose.main()
\end{lstlisting}
-\inctime{15}
+\inctime{10}
\end{frame}
\begin{frame}[fragile]
@@ -566,20 +566,38 @@ Tweak the code to pass this test.
\end{frame}
\begin{frame}[fragile]
- \frametitle{Exercise: Some more tests.}
+ \frametitle{Lets write some test!}
\begin{lstlisting}
-def test_function_ignore_spaces_in_text():
- input = "ab raca carba"
- assert is_palindrome(input) == True
+#for form of equation y=mx+c
+#given m and c for two equation,
+#finding the intersection point.
+def intersect(m1,c1,m2,c2):
+ x = (c2-c1)/(m1-m2)
+ y = m1*x+c1
+ return (x,y)
\end{lstlisting}
-Check
-\PythonCode{$ nosetests test.py}
+Create a simple test for this
-Tweak the code to pass this test.
+function which will make it fail.
\inctime{15}
\end{frame}
+\section{Summary}
+\begin{frame}{So we have covered:}
+ \begin{itemize}
+ \item Need for vizualization.
+ \item Tools available.
+ \item How to follow Test Driven Approach.
+ \end{itemize}
+\end{frame}
+\begin{frame}
+ \begin{center}
+ \Huge
+ Thank you!
+ \end{center}
+\end{frame}
+
\end{document}