From e681e51b28f0049426710e8c71a6f2b697f755df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 1 Apr 2021 16:24:47 +0300 Subject: [PATCH] explain test suite --- IV/mj-msc.tex | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex index bfe3f15..43ca233 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -61,7 +61,6 @@ \end{center} \end{titlepage} - \begin{abstract} \label{sec:abstract} Current open-source line generalization solutions have their roots in @@ -185,13 +184,28 @@ as a whole. \section{Methodology} \label{sec:methodology} -In this paper we describe {\WM} in a detail that is more useful for algorithm -developers than the original \cite{wang1998line}: sections will be expanded, -with more detailed illustrations next to the descriptions. - +The original \cite{wang1998line} leaves something to be desired for a practical +implementation: it is not straightforward to implement the algorithm from the +paper alone. + +In this paper we describe {\WM} in a detail that is more useful for algorithm: +each section will be expanded, with more elaborate and exact illustrations for +every step of the algorithm. \subsection{Automated tests} +As part of the algorithm realization, an automated test suite has been +developed. Shapes to test each function have been hand-crafted and expected +results have been manually calculated. The test suite executes parts of the +algorithm against a predefined set of geometries, and asserts that the output +matches the resulting hand-calculated geometry. + +The full test suite can be executed with a single command, and completes in a +few seconds. Having an easily accessible test suite boosts confidence that no +unexpected regressions have been added while modifying the algorithm. + + + \section{Description of the implementation} \subsection{Definition of a Bend}