From e9afddcb0d38a18bc321e9e85fdb3a8a0c1e3880 Mon Sep 17 00:00:00 2001 From: Simon Hafner Date: Tue, 30 Jun 2015 10:49:31 -0500 Subject: [PATCH] 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." --- contributing.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contributing.rst b/contributing.rst index 3a028fae64..48f0dbf00e 100644 --- a/contributing.rst +++ b/contributing.rst @@ -32,8 +32,11 @@ Compiler The tests for the compiler work differently, they are all located in ``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 -the test. Possible keys are: +stdlib tests. All test files are prefixed with ``t``. If you want to +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`` - exitcode: Exit code of the test (via ``exit(number)``)