-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd731d6
commit 1d9c675
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
\documentclass{article} | ||
|
||
\usepackage[margin=1.5cm, includefoot, footskip=30pt]{geometry} | ||
\usepackage[parfill]{parskip} | ||
\usepackage[black]{merriweather} %% Option 'black' gives heavier bold face | ||
\usepackage[T1]{fontenc} | ||
\usepackage{hyperref} | ||
\usepackage{minted} | ||
|
||
\pagenumbering{gobble} | ||
|
||
\title{Computing for Mathematics: Handout 7} | ||
\date{} | ||
|
||
\begin{document} | ||
|
||
\maketitle | ||
|
||
|
||
This handout contains a summary of the topics covered as well as outline of | ||
expected progress. | ||
|
||
For further practice you can do the exercises available at | ||
\href{https://vknight.org/pfm/building-tools/06-testing/exercises/main.html}{the | ||
testing chapter of Python for Mathematics}. | ||
|
||
\section{Expected progress} | ||
\hrule | ||
|
||
At the end of this week you should start writing your automated tests. | ||
|
||
\begin{itemize} | ||
\item Write your \mintinline{python}{test_<library>.py} file. | ||
\item Include doctests in your \mintinline{md}{README.md} file. | ||
\end{itemize} | ||
|
||
\begin{center} | ||
\framebox{ | ||
\textbf{At this stage I'd expect you to have tests for your library.} | ||
} | ||
\end{center} | ||
|
||
\section{Summary}\label{summary} | ||
\hrule | ||
|
||
The programming topics covered in the | ||
\href{https://vknight.org/pfm/building-tools/06-testing/introduction/main.html}{testing | ||
chapter | ||
} are: | ||
|
||
% TODO | ||
|
||
\begin{itemize} | ||
\item Write an assert statement. | ||
\item Write and run a test file. | ||
\item Write doctests. | ||
\item Run doctests. | ||
\end{itemize} | ||
|
||
\end{document} |