Sha256: dc988bb4c506d5b4029439319a0ce6c390cfedd8367a0582e646e5e1bcce75b9

Contents?: true

Size: 1.13 KB

Versions: 183

Compression:

Stored size: 1.13 KB

Contents

Each exercise supplies the unit tests. You provide the implementation.
Each file will produce a console executable that runs the tests. Running the test executable
prints messages for each failing test and reports a non-zero exit status when tests fail.


*Note* Your code is being tested against the test suite every time you build your project.
If your code does not pass the one or more tests but is valid D code, it will still be compiled.


Working through each exercise is a process of:

* Creating the initial build with **dmd example.d -de -w -unittest**
* Run  with **./example or example.exe** depending on the platform
* For each unit test:
 * Satisfy compile errors to make the test fail.
 * Implement just enough to make the test pass.
 * Refactor your implementation to enhance readability, reduce duplication, etc.
 * Enable the next test

*Note:* D has support for unit testing direct in the language so usually the unit tests
reside in the same file as the implementation. The unittests are ran before the body of
main and are enabled in the final executable by using the **-unittest** compiler switch.

@TODO add IDE related instructions.

Version data entries

183 entries across 183 versions & 1 rubygems

Version Path
trackler-2.1.0.27 tracks/dlang/docs/TESTS.md
trackler-2.1.0.26 tracks/dlang/docs/TESTS.md
trackler-2.1.0.25 tracks/dlang/docs/TESTS.md
trackler-2.1.0.24 tracks/dlang/docs/TESTS.md
trackler-2.1.0.23 tracks/dlang/docs/TESTS.md
trackler-2.1.0.22 tracks/dlang/docs/TESTS.md
trackler-2.1.0.21 tracks/dlang/docs/TESTS.md
trackler-2.1.0.20 tracks/dlang/docs/TESTS.md
trackler-2.1.0.19 tracks/dlang/docs/TESTS.md
trackler-2.1.0.18 tracks/dlang/docs/TESTS.md
trackler-2.1.0.17 tracks/dlang/docs/TESTS.md
trackler-2.1.0.16 tracks/dlang/docs/TESTS.md
trackler-2.1.0.15 tracks/dlang/docs/TESTS.md
trackler-2.1.0.14 tracks/dlang/docs/TESTS.md
trackler-2.1.0.13 tracks/dlang/docs/TESTS.md
trackler-2.1.0.12 tracks/dlang/docs/TESTS.md
trackler-2.1.0.11 tracks/dlang/docs/TESTS.md
trackler-2.1.0.10 tracks/dlang/docs/TESTS.md
trackler-2.1.0.9 tracks/dlang/docs/TESTS.md
trackler-2.1.0.8 tracks/dlang/docs/TESTS.md