Nim/tests
2010-02-21 19:42:36 +01:00
..
accept start of tests refactoring; sqlite3 new wrapper fixes 2010-02-21 19:42:36 +01:00
gc start of tests refactoring; sqlite3 new wrapper fixes 2010-02-21 19:42:36 +01:00
gtk continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
reject start of tests refactoring; sqlite3 new wrapper fixes 2010-02-21 19:42:36 +01:00
cairotest.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
cgitest.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
csvtest.csv continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
curltest.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
data.csv continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
ecmas.html continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
ecmas.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
hallo.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
jsontest.json continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mambsym1.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mambsym2.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mambsys1.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mambsys2.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
minit.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mnamspc1.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mnamspc2.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mopaque.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mrecmod.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
mrecmod2.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
readme.txt continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
rectest.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
sdltest.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
stckovfl.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
sunset.tmpl continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
tester.nim start of tests refactoring; sqlite3 new wrapper fixes 2010-02-21 19:42:36 +01:00
tnewlibs.cfg continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
wildhtml.html bugfixes for unicode; xmlparser; htmlparser; scanner 2010-02-20 19:21:38 +01:00
wingui.nim continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
x11test.nim start of tests refactoring; sqlite3 new wrapper fixes 2010-02-21 19:42:36 +01:00
xmltest.html continued work on html/xmlparser 2010-02-14 00:29:35 +01:00

This directory contains the test cases.
Each test must have a filename of the form: ``t*.nim``

The testcases may contain the directives ``#ERROR``, ``#ERROR_IN``, 
``#ERROR_MSG`` or ``#OUT``.
``#ERROR`` is used to indicate that the compiler should report
an error in the marked line (the line that contains the ``#ERROR``
directive.)
The format for ``#ERROR_IN`` is::

     #ERROR_IN filename linenumber

You can omit the extension of the filename (``.nim`` is then assumed).
The format for ``#ERROR_MSG`` is::

     #ERROR_MSG message

This directive specifies the error message Nimrod shall produce.

Tests which contain none of the ``#ERROR*`` directives should compile. 
Thus they are executed after successful compilation and their output 
is compared to the expected results (specified with the ``#OUT`` 
directive). Tests which require user interaction are currently not 
possible.