added test file naming convention
Via https://github.com/nim-lang/Nim/pull/3025#issuecomment-117191789 "Don't name the import with 't'. Convention is to replace the 't' with an 'm' prefix."
This commit is contained in:
parent
62cea4e29c
commit
e9afddcb0d
1 changed files with 5 additions and 2 deletions
|
|
@ -32,8 +32,11 @@ Compiler
|
||||||
|
|
||||||
The tests for the compiler work differently, they are all located in
|
The tests for the compiler work differently, they are all located in
|
||||||
``tests/``. Each test has its own file, which is different from the
|
``tests/``. Each test has its own file, which is different from the
|
||||||
stdlib tests. At the beginning of every test is the expected side of
|
stdlib tests. All test files are prefixed with ``t``. If you want to
|
||||||
the test. Possible keys are:
|
create a file for import into another test only, use the prefix ``m``.
|
||||||
|
|
||||||
|
At the beginning of every test is the expected side of the test.
|
||||||
|
Possible keys are:
|
||||||
|
|
||||||
- output: The expected output, most likely via ``echo``
|
- output: The expected output, most likely via ``echo``
|
||||||
- exitcode: Exit code of the test (via ``exit(number)``)
|
- exitcode: Exit code of the test (via ``exit(number)``)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue