summaryrefslogtreecommitdiff
path: root/assignments
diff options
context:
space:
mode:
authorCamil Staps2017-09-18 14:31:13 +0200
committerCamil Staps2017-09-18 14:31:13 +0200
commitd528056ca6b8cdf2de7f2e6e631d521de073a59f (patch)
tree5d336e81fae6070425100e1c8d01d0459e69aacf /assignments
parentTesting setup graphic (diff)
Add wrapper source code
Diffstat (limited to 'assignments')
-rw-r--r--assignments/assignment1.tex14
1 files changed, 10 insertions, 4 deletions
diff --git a/assignments/assignment1.tex b/assignments/assignment1.tex
index b5a0a8b..d9cd1f2 100644
--- a/assignments/assignment1.tex
+++ b/assignments/assignment1.tex
@@ -2,7 +2,7 @@
\usepackage{enumerate}
\usepackage[hidelinks]{hyperref}
-\usepackage{listings}
+\usepackage{minted}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,arrows}
\usepackage{cleveref}
@@ -26,8 +26,8 @@
\item
Starting the SUT requires being able to compile haskell, typically through the GHC, and having the Chess.hs dependency installed.
- Installing Chess.hs can be done through cabal, using the \lstinline|cabal install chesshs| command.
- Compiling and running is then done through \lstinline|make run|.
+ Installing Chess.hs can be done through cabal, using the \mintinline{bash}{cabal install chesshs} command.
+ Compiling and running is then done through \mintinline{bash}{make run}.
\item
\begin{enumerate}[a)]
@@ -96,14 +96,20 @@
\draw (wbtest) -- (chesshs);
\draw (quickcheck) -- (wbtest);
\end{tikzpicture}
- \caption{A graphical overview of the testing setup\label{fig:testing-setup}}
+ \caption{A graphical overview of the testing setup.\label{fig:testing-setup}}
\end{figure}
+\begin{listing}
+ \inputminted[fontsize=\footnotesize,firstline=13]{haskell}{../src/runchess.hs}
+ \caption{The basic wrapper.\label{lst:wrapper}}
+\end{listing}
+
\section{Test Environment}
\begin{enumerate}
\setcounter{enumi}{10}
\item
A wrapper written by us will be used to interact with the SUT.
+ See \cref{lst:wrapper} for the implementation.
\item
Tests will be automatically performed using a combination of bash and Quickcheck.
\item