def
fd4e629905
Rename PNimrodNode to NimNode
2015-03-17 17:50:32 +01:00
def
416456cefe
Try to fix unittest for JS backend, still not working
2015-02-04 21:44:25 +01:00
Flaviu Tamas
d24fb3d0b9
Fix named argument handling
...
Instead of trying to use the whole parameter, it uses just the RHS, as expected
2015-01-16 19:01:33 -05:00
Andreas Rumpf
e386b7460b
Merge pull request #1876 from flaviut/unittest-stacktrace
...
Add stack trace to unitest.nim exceptions
2015-01-07 14:15:11 +01:00
Varriount
2a7b9c64a3
Merge pull request #1883 from flaviut/add-unittest-docs
...
Add an example and remove future claims from unittest.nim
2015-01-05 23:01:56 -05:00
Flaviu Tamas
8f446eb541
Properly use the terminal module
...
The documentation for terminal says
> Changing the style is permanent even after program termination! Use the code
> `system.addQuitProc(resetAttributes)` to restore the defaults.
2015-01-05 21:54:06 -05:00
Flaviu Tamas
6a8d38f358
Add an example and remove future claims
...
The future claims haven't been addressed for 3 years, they are unlikely to be
fixed soon.
2015-01-05 21:44:35 -05:00
Flaviu Tamas
d99454314c
Make unittest.nim print stack trace
2015-01-05 18:59:59 -05:00
Araq
a0ad3aa183
work around a regression caused by the new 'echo' implementation
2014-12-28 22:24:29 +01:00
gmpreussner
0e65d786d5
Removed extra line breaks from unittest output.
2014-12-21 23:47:01 -05:00
Araq
ae548a696f
made some tests green
2014-08-31 12:34:35 +02:00
Araq
d05df2173b
Nimrod renamed to Nim
2014-08-28 09:50:51 +02:00
Araq
e12f9518cc
more modules updated
2014-08-28 01:54:36 +02:00
Araq
11b6958755
big rename
2014-08-27 23:42:51 +02:00
Araq
dd806cafa0
distinguish between 'defined' and 'declared'
2014-08-11 20:38:28 +02:00
Araq
5073914b86
unittest module works again
2014-01-18 00:58:59 +01:00
Zahary Karadjov
de3b7cd413
progress towards adding negative type classes
...
[unittest bugfixes]
the block form of check now allows comments
errors when inspecting the arguments of var-accepting procs
2013-12-09 00:09:03 +02:00
Zahary Karadjov
1e26047c3b
adding some provisions for writing lower-level unit tests targeting specific sub-systems of the compiler
...
see sigmatch as an example.
tests are compiled only when the compiler is compiled with -d:selftest
to execute them, just run the resulting binary without arguments
2013-12-07 20:30:44 +02:00
Simon Hafner
71ade195d1
WA for #329 , caused by #335
2013-02-15 20:40:07 -06:00
Simon Hafner
260ddd735a
on the path to get unittest running from JS
2013-02-15 20:32:32 -06:00
Zahary Karadjov
d9d82fb0af
syntax compatibility between do blocks and stmt blocks
...
See the section `do notation` in the manual for more info.
* nkMacroStmt has been removed
Macro statements are now mapped to regular nkCall nodes.
The support for additional clauses (such as else, except, of, etc)
have been restored - they will now appear as additional arguments
for the nkCall node (as nkElse, nkExcept, etc nodes)
* fixed some regressions in the `is` operator and semCompiles
2012-10-04 15:37:26 +03:00
Zahary Karadjov
b6f8ab3254
[unittest] even deeper inspection of expressions and variables for the check macro
2012-09-14 00:53:30 +03:00
Zahary Karadjov
36155a6813
[unittest] the check macro will print the values of params involved in failed proc calls
2012-09-13 04:10:08 +03:00
Araq
8178cd4fab
made some tests green
2012-09-12 08:43:24 +02:00
Araq
46f652b93e
unittest bugfix; made some tests green
2012-09-08 22:33:15 +02:00
Araq
b56df72a32
made tests green again
2012-08-31 00:00:14 +02:00
Araq
1d14cb1ad8
next steps towards term rewriting macros; simple examples work
2012-08-30 22:55:32 +02:00
Araq
f893179889
documented hygienic templates; made tests green; fixed system.clamp
2012-08-22 22:46:02 +02:00
Zahary Karadjov
a72fe16f9d
making tests green again
2012-03-20 14:44:23 +02:00
Araq
e3b25e93ac
unittest module compiles again
2012-03-17 18:58:59 +01:00
Zahary Karadjov
f9876d379d
unit test for #100
...
unittest: the check macro will print only the non-literal part of the checked expression
tests/run: added tunittests.nim as a single central executable where unittests could be added for quicker compilation/execution of the test suite
2012-03-10 17:26:34 +02:00
Araq
4f1b89c30c
year 2012 for most copyright headers
2012-01-02 23:07:35 +01:00
Zahary Karadjov
e13a610ad4
The test runner will print out encountered exceptions
2011-12-07 00:57:52 +02:00
Zahary Karadjov
da4076e0b7
when running unit tests, the tester will print only failures using colorless output (this should be better for nimbuild)
2011-11-10 04:39:46 +02:00
Zahary Karadjov
489340658e
Added system.program_results for controlling the exit code of the program under normal circumstances
...
Implemented operators like +=, -=, etc for ordinals, floats and string
Programs using the UnitTest module will now report the number of failed tests as the exit code of test runs (0 for successful run)
2011-11-10 04:10:03 +02:00
Araq
dc08a033d9
memfiles now uses winlean; changed the interface to raise EOS
2011-11-05 12:16:49 +01:00
Araq
1f6725e59e
small bugfixes to make more tests green
2011-11-02 02:28:18 +01:00
Zahary Karadjov
4a444bf6db
*Pimped up* the test runner with colorful output
...
Added: terminal.styledEcho macro
2011-10-07 17:10:04 +03:00
Zahary Karadjov
e3deb5b502
Cleaned up the circular dependecies and remaining issues
...
Changed: The []= operator for strings and sequences is now capable of splicing
2011-10-07 17:10:04 +03:00
Zahary Karadjov
22546c44d1
Basic unit testing facilities (suites, fixtures, cases)
...
Added: PNimrodNode.lineinfo for better error messages from macros
Added: seq.splice
For easier use from templates and macros, except stament now supports
the list of exception types to be supplied in nkBraket node (array literal).
2011-10-07 17:07:18 +03:00