From d528056ca6b8cdf2de7f2e6e631d521de073a59f Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Mon, 18 Sep 2017 14:31:13 +0200
Subject: Add wrapper source code

---
 assignments/assignment1.tex | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'assignments/assignment1.tex')

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
-- 
cgit v1.2.3

