Skip to content

Commit 6ca3d0b

Browse files
committed
Update ep 4 READMEs to use CMake instead of FPM
1 parent c0bb53f commit 6ca3d0b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

episodes/1-into-to-unit-tests/challenge/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ Take a look at the [src](./src/maths.f90) and [test](./test/maths_test.f90) code
1010
2. What changes would improve this unit test?
1111
3. 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
1919
within 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
```

episodes/1-into-to-unit-tests/solution/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ contents of [challenge/test/test_maths.f90](../challenge/test/test_maths.f90) wi
2929
with...
3030

3131
```sh
32-
fpm test
32+
cmake -B build
33+
cmake --build build
34+
ctest --test-dir build --output-on-failure
3335
```

0 commit comments

Comments
 (0)