Skip to content

Commit bc38fe6

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : 7d243a5 Branch : main Author : Connor Aird <c.aird@ucl.ac.uk> Time : 2026-01-06 14:28:36 +0000 Message : Merge pull request #40 from UCL-ARC/add-integrating-with-build-systems
1 parent d449aa3 commit bc38fe6

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

4-pfunit-syntax.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ end type my_test_case
141141

142142
#### Challenge: Add derived types to pFUnit tests of temperature conversions
143143

144-
Continuing with part two of [3-writing-your-first-unit-test/challenge][exercises-challenge] from the
144+
Continuing with part two of [3-writing-your-first-unit-test/challenge][https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/challenge] from the
145145
exercises repo. Begin re-writing your standard Fortran test using pFUnit. First, add some derived
146146
types to the provided template file,
147147
[test_temp_conversions.pf](https://github.com/UCL-ARC/fortran-unit-testing-exercises/blob/main/episodes/3-writing-your-first-unit-test/challenge/test/pfunit/test_temp_conversions.pf#L9-L19).
@@ -171,7 +171,7 @@ type, extends(ParameterizedTestCase) :: temp_conversions_test_case_t
171171
end type temp_conversions_test_case_t
172172
```
173173

174-
A full solution is provided in [3-writing-your-first-unit-test/solution](exercises-solution).
174+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/solution).
175175

176176
:::::::::::::::::::::::::::::::::::::::::
177177
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -229,7 +229,7 @@ function fahrenheit_to_celsius_testsuite() result(params)
229229
end function fahrenheit_to_celsius_testsuite
230230
```
231231

232-
A full solution is provided in [3-writing-your-first-unit-test/solution](exercises-solution).
232+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/solution).
233233

234234
:::::::::::::::::::::::::::::::::::::::::
235235
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -251,7 +251,7 @@ subroutine TestMySrcProcedure(this)
251251
252252
call my_src_procedure(this%params%input, actual_output)
253253
254-
@assertEqual(this%params%input, actual_output, "Unexpected output from my_src_procedure")
254+
@assertEqual(this%params%expected_output, actual_output, "Unexpected output from my_src_procedure")
255255
end subroutine TestMySrcProcedure
256256
```
257257

@@ -315,7 +315,7 @@ subroutine test_fahrenheit_to_celsius(this)
315315
end subroutine test_fahrenheit_to_celsius
316316
```
317317

318-
A full solution is provided in [3-writing-your-first-unit-test/solution](exercises-solution).
318+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/solution).
319319

320320
:::::::::::::::::::::::::::::::::::::::::
321321
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -394,7 +394,7 @@ function temp_conversions_test_params_t_toString(this) result(string)
394394
end function temp_conversions_test_params_t_toString
395395
```
396396

397-
A full solution is provided in [3-writing-your-first-unit-test/solution](exercises-solution).
397+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/solution).
398398

399399
:::::::::::::::::::::::::::::::::::::::::
400400
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -405,15 +405,11 @@ A full solution is provided in [3-writing-your-first-unit-test/solution](exercis
405405

406406
## Challenge: Test temperature conversions using pFUnit
407407

408-
Finalising your pFUnit test of `temp_conversions` add an additional test of the function `celsius_to_kelvin`.
408+
Finalising your pFUnit test of **temp_conversions**, add an additional test of the function **celsius_to_kelvin**.
409409

410410
:::::::::::::::::::::::::::::::: solution
411411

412-
The full solution is provided in [3-writing-your-first-unit-test/solution](exercises-solution).
412+
The full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/solution).
413413

414414
:::::::::::::::::::::::::::::::::::::::::
415415
:::::::::::::::::::::::::::::::::::::::::::::::
416-
417-
[pfunit-directives]: https://pfunit.sourceforge.net/page_Assert.html3-writing-your-first-unit-test/challenge/src/temp_conversions.f90
418-
[exercises-challenge]: https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/challenge
419-
[exercises-solution]: https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/3-writing-your-first-unit-test/solution

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"episodes/1-what-is-a-unit-tests.md" "ba669da4e6eb98ad7357bedcecbd6b27" "site/built/1-what-is-a-unit-tests.md" "2025-11-04"
88
"episodes/2-refactor-fortran.md" "9d9096efaedc95392adcfd021af90fc1" "site/built/2-refactor-fortran.md" "2025-12-05"
99
"episodes/3-writing-your-first-unit-test.md" "9582bf8c63f9d3a0f2f0b231a3b87e23" "site/built/3-writing-your-first-unit-test.md" "2025-12-05"
10-
"episodes/4-pfunit-syntax.md" "d0b496939021a9f8b86feb1f7fb044d7" "site/built/4-pfunit-syntax.md" "2025-12-22"
10+
"episodes/4-pfunit-syntax.md" "1e71fd2c2e00620e93623aba6f6e0a90" "site/built/4-pfunit-syntax.md" "2026-01-06"
1111
"episodes/5-debugging-a-broken-test.md" "96180b037eb5a4d9c07eaf37fc32c90d" "site/built/5-debugging-a-broken-test.md" "2025-12-05"
1212
"episodes/6-testing-parallel-code.md" "7b97f99ccfbdf57bbef63e0dfd7bc988" "site/built/6-testing-parallel-code.md" "2025-12-05"
1313
"instructors/instructor-notes.md" "cae72b6712578d74a49fea7513099f8c" "site/built/instructor-notes.md" "2023-03-16"

0 commit comments

Comments
 (0)