[opengtl-commits] [194] add runTest to the specification

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 194
Author:   cyrille
Date:     2008-06-14 11:16:02 +0200 (Sat, 14 Jun 2008)

Log Message:
-----------
add runTest to the specification

Modified Paths:
--------------
    trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex


Modified: trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex
===================================================================
--- trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex	2008-06-14 09:08:04 UTC (rev 193)
+++ trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex	2008-06-14 09:16:02 UTC (rev 194)
@@ -71,9 +71,9 @@
   }
 \end{verbatim}
 
-The needed function indicates the Shiva interpreter which pixel in the input
-images are needed. For instance, if you program is a gaussian blur, it needs an
-extra pixel around the operated region.
+The \verb|needed| function indicates the Shiva interpreter which pixel in the
+input images are needed. For instance, if you program is a gaussian blur, it
+needs an extra pixel around the operated region.
 
 \begin{tabular}[t]{|c|p{250pt}|}
 \hline
@@ -95,7 +95,21 @@
   }
 \end{verbatim}
 
+\subsection{runTest}
+This function is used for \verb|kernel| which are used for automatic testing of
+the language, and of the interpreter. It's a function that doesn't take any
+parameter and return the number of failed tests.
 
+Exemple:
+\begin{verbatim}
+  int runTest()
+  {
+    int count = 0;
+    if( (1+1) != 2) ++count;
+    return count;
+  }
+\end{verbatim}
+
 \chapter{Types}
 
 \section{Primitive types}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/