Sha256: 485416c6cc24c36ca21db980d01994a4c104571f06773934b283d9deacd37b4e

Contents?: true

Size: 1.17 KB

Versions: 213

Compression:

Stored size: 1.17 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:

* Running the tests with `dub test`
  * If you have chosen not to install DUB, you would instead use `dmd source/*.d -de -w -main -unittest`, then run the resulting binary.
* 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

213 entries across 213 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/d/docs/TESTS.md
trackler-2.2.1.179 tracks/d/docs/TESTS.md
trackler-2.2.1.178 tracks/d/docs/TESTS.md
trackler-2.2.1.177 tracks/d/docs/TESTS.md
trackler-2.2.1.176 tracks/d/docs/TESTS.md
trackler-2.2.1.175 tracks/d/docs/TESTS.md
trackler-2.2.1.174 tracks/d/docs/TESTS.md
trackler-2.2.1.173 tracks/d/docs/TESTS.md
trackler-2.2.1.172 tracks/d/docs/TESTS.md
trackler-2.2.1.171 tracks/d/docs/TESTS.md
trackler-2.2.1.170 tracks/d/docs/TESTS.md
trackler-2.2.1.169 tracks/d/docs/TESTS.md
trackler-2.2.1.167 tracks/d/docs/TESTS.md
trackler-2.2.1.166 tracks/d/docs/TESTS.md
trackler-2.2.1.165 tracks/d/docs/TESTS.md
trackler-2.2.1.164 tracks/d/docs/TESTS.md
trackler-2.2.1.163 tracks/d/docs/TESTS.md
trackler-2.2.1.162 tracks/d/docs/TESTS.md
trackler-2.2.1.161 tracks/d/docs/TESTS.md
trackler-2.2.1.160 tracks/d/docs/TESTS.md