File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
episodes/1-into-to-unit-tests Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,16 @@ Take a look at the [src](./src/maths.f90) and [test](./test/maths_test.f90) code
10102 . What changes would improve this unit test?
11113 . Try to implement your suggested changes.
1212
13- These tests are written without using any test framework just pure fortran . The only file you should need to update is
14- [ test/test_maths.f90] ( ./test/test_maths.f90 ) .
13+ These tests are written without using any test framework just pure Fortran . The only file you
14+ should need to update is [ test/test_maths.f90] ( ./test/test_maths.f90 ) .
1515
1616## Running the tests
1717
18- An [ fpm.toml ] ( ./fpm.toml ) is provided to make running these test easier. From
18+ A [ CMakeLists.txt ] ( ./CMakeLists.txt ) file is provided to make running these test easier. From
1919within the challenge directory, run the command
2020
2121``` sh
22- fpm test
22+ cmake -B build
23+ cmake --build build
24+ ctest --test-dir build --output-on-failure
2325```
Original file line number Diff line number Diff line change @@ -29,5 +29,7 @@ contents of [challenge/test/test_maths.f90](../challenge/test/test_maths.f90) wi
2929with...
3030
3131``` sh
32- fpm test
32+ cmake -B build
33+ cmake --build build
34+ ctest --test-dir build --output-on-failure
3335```
You can’t perform that action at this time.
0 commit comments