Nim/tests
2011-02-12 19:24:20 +01:00
..
accept non-nil AST; continue after errors for IDE support 2011-02-12 19:24:20 +01:00
gc non-nil AST; continue after errors for IDE support 2011-02-12 19:24:20 +01:00
reject non-nil AST; continue after errors for IDE support 2011-02-12 19:24:20 +01:00
testdata non-nil AST; continue after errors for IDE support 2011-02-12 19:24:20 +01:00
ecmas.html threading code deactivated; tiny C bugfix: don't report warnings to error callback 2010-09-19 21:35:44 +02:00
ecmas.nim threading code deactivated; tiny C bugfix: don't report warnings to error callback 2010-09-19 21:35:44 +02:00
readme.txt fixed pango/pangoutils new wrappers 2010-02-26 01:26:16 +01:00
rectest.nim fixed pango/pangoutils new wrappers 2010-02-26 01:26:16 +01:00
stckovfl.nim fixed pango/pangoutils new wrappers 2010-02-26 01:26:16 +01:00
sunset.tmpl fixed pango/pangoutils new wrappers 2010-02-26 01:26:16 +01:00
tester.nim c2nim compiles again [#9 state:resolved]; better error message for named parameters 2011-01-09 19:02:06 +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.