You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-generated via `{sandpaper}`
Source : 9553ea6
Branch : main
Author : Connor Aird <c.aird@ucl.ac.uk>
Time : 2026-05-01 17:21:14 +0000
Message : gh-49: Add exercises into lesson (#48)
* Add exercises into lesson
* Use prek not pre-commit in workflow
* Use correct path the docker files
* Rename dockerfile to remove episode reference
* Test using aleskxyz/build-push to run tests
* Login before running tests
* Remove linting
* Use podman for build as this is what we logged in with
* Refer to the parent image for this repo rather than intro-to-modern-fortran
* Update links to old ucl-arc repo to the new repo
* Add accidentally deleted index.md back in
Copy file name to clipboardExpand all lines: 1-what-is-a-unit-tests.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,11 +118,11 @@ This is much clearer. We immediately have an idea of what could be going wrong a
118
118
119
119
## Challenge 2: Unit test bad practices
120
120
121
-
Take a look at [1-into-to-unit-tests/challenge](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/1-into-to-unit-tests/challenge) in the exercises repository.
121
+
Take a look at [1-into-to-unit-tests/challenge](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/1-into-to-unit-tests/challenge) in the exercises repository.
122
122
123
123
:::::::::::::::::::::::::::::::: solution
124
124
125
-
A solution is provided in [1-into-to-unit-tests/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/1-into-to-unit-tests/solution).
125
+
A solution is provided in [1-into-to-unit-tests/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/1-into-to-unit-tests/solution).
Copy file name to clipboardExpand all lines: 2-refactor-fortran.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ best practice. Examples of what we mean by "bad practice" would be not limited t
29
29
30
30
To demonstrate the benefits of refactoring Fortran and how it can be done, we're going to help John to
31
31
improve his Fortran implementation of the game of life. A copy of John's code can be found in the
32
-
exercises repo at [2-refactoring-fortran/challenge](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/2-refactoring-fortran/challenge).
32
+
exercises repo at [2-refactoring-fortran/challenge](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/2-refactoring-fortran/challenge).
Copy file name to clipboardExpand all lines: 4-pfunit-syntax.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,10 +141,10 @@ end type my_test_case
141
141
142
142
#### Challenge: Add derived types to pFUnit tests of temperature conversions
143
143
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
144
+
Continuing with part two of [3-writing-your-first-unit-test/challenge](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/3-writing-your-first-unit-test/challenge) from the
145
145
exercises repo. Begin re-writing your standard Fortran test using pFUnit. First, add some derived
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).
174
+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/3-writing-your-first-unit-test/solution).
175
175
176
176
:::::::::::::::::::::::::::::::::::::::::
177
177
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -208,7 +208,7 @@ end function my_test_suite
208
208
209
209
Continuing with your pFUnit test of `temp_conversions`, add a test suite for tests of the
210
210
function `fahrenheit_to_celsius` in the indicated section of the template file,
@@ -229,7 +229,7 @@ function fahrenheit_to_celsius_testsuite() result(params)
229
229
end function fahrenheit_to_celsius_testsuite
230
230
```
231
231
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).
232
+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/3-writing-your-first-unit-test/solution).
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).
318
+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/3-writing-your-first-unit-test/solution).
319
319
320
320
:::::::::::::::::::::::::::::::::::::::::
321
321
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -367,7 +367,7 @@ end function my_test_params_toString
367
367
368
368
Continuing with your pFUnit test of `temp_conversions`, add some type constructors for
369
369
tests of the `temp_conversions` in the indicated section of the template file,
@@ -394,7 +394,7 @@ function temp_conversions_test_params_t_toString(this) result(string)
394
394
end function temp_conversions_test_params_t_toString
395
395
```
396
396
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).
397
+
A full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/3-writing-your-first-unit-test/solution).
398
398
399
399
:::::::::::::::::::::::::::::::::::::::::
400
400
:::::::::::::::::::::::::::::::::::::::::::::::
@@ -409,7 +409,7 @@ Finalising your pFUnit test of **temp_conversions**, add an additional test of t
409
409
410
410
:::::::::::::::::::::::::::::::: solution
411
411
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).
412
+
The full solution is provided in [3-writing-your-first-unit-test/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/3-writing-your-first-unit-test/solution).
Copy file name to clipboardExpand all lines: 6-testing-parallel-code.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,9 +88,9 @@ end type my_test_case
88
88
89
89
#### Challenge: Update derived types to work with MPI
90
90
91
-
Take a look at the exercise [6-testing-parallel-code](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/6-testing-parallel-code/challenge). This exercise contains an MPI parallelised version of the game of life from episode [2. Refactoring Fortran](https://github-pages.arc.ucl.ac.uk/fortran-unit-testing-lesson/2-refactor-fortran.html) and the exercise [4-fortran-unit-test-syntax](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/4-fortran-unit-test-syntax/challenge).
91
+
Take a look at the exercise [6-testing-parallel-code](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/6-testing-parallel-code/challenge). This exercise contains an MPI parallelised version of the game of life from episode [2. Refactoring Fortran](https://github-pages.arc.ucl.ac.uk/fortran-unit-testing-lesson/2-refactor-fortran.html) and the exercise [4-fortran-unit-test-syntax](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/4-fortran-unit-test-syntax/challenge).
92
92
93
-
Complete the first step of the challenge by converting the derived types within [test_find_steady_state.pf](https://github.com/UCL-ARC/fortran-unit-testing-exercises/blob/main/episodes/6-testing-parallel-code/challenge/test/test_find_steady_state.pf#L10-L29) to work with MPI.
93
+
Complete the first step of the challenge by converting the derived types within [test_find_steady_state.pf](https://github.com/carpentries-incubator/fortran-unit-testing/blob/main/exercises/6-testing-parallel-code/challenge/test/test_find_steady_state.pf#L10-L29) to work with MPI.
94
94
95
95
:::::::::::::::::::::::::::::::: solution
96
96
@@ -151,9 +151,9 @@ end function my_test_suite
151
151
152
152
#### Challenge: Update test suite to work with MPI
153
153
154
-
Continuing with the exercise [6-testing-parallel-code](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/6-testing-parallel-code/challenge).
154
+
Continuing with the exercise [6-testing-parallel-code](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/6-testing-parallel-code/challenge).
155
155
156
-
Complete the next step of the challenge by converting the test suite within [test_find_steady_state.pf](https://github.com/UCL-ARC/fortran-unit-testing-exercises/blob/main/episodes/6-testing-parallel-code/challenge/test/test_find_steady_state.pf#L37-L63) to work with your new derived types.
156
+
Complete the next step of the challenge by converting the test suite within [test_find_steady_state.pf](https://github.com/carpentries-incubator/fortran-unit-testing/blob/main/exercises/6-testing-parallel-code/challenge/test/test_find_steady_state.pf#L37-L63) to work with your new derived types.
157
157
158
158
:::::::::::::::::::::::::::::::: solution
159
159
@@ -231,9 +231,9 @@ In the example above, the MPI communicator is passed into the src procedure. Usi
231
231
232
232
#### Challenge: Update test logic to work with MPI
233
233
234
-
Continuing with the exercise [6-testing-parallel-code](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/6-testing-parallel-code/challenge).
234
+
Continuing with the exercise [6-testing-parallel-code](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/6-testing-parallel-code/challenge).
235
235
236
-
Converting the test logic within [test_find_steady_state.pf](https://github.com/UCL-ARC/fortran-unit-testing-exercises/blob/main/episodes/6-testing-parallel-code/challenge/test/test_find_steady_state.pf#L69-L84) to work with the new src procedure
236
+
Converting the test logic within [test_find_steady_state.pf](https://github.com/carpentries-incubator/fortran-unit-testing/blob/main/exercises/6-testing-parallel-code/challenge/test/test_find_steady_state.pf#L69-L84) to work with the new src procedure
237
237
signature.
238
238
239
239
:::::::::::::::::::::::::::::::: solution
@@ -411,11 +411,11 @@ end subroutine TestMySrcProcedure
411
411
412
412
### Challenge: A more complex MPI test
413
413
414
-
Take a look at part 3 of [6-testing-parallel-code/challenge](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/6-testing-parallel-code/challenge) in the exercises repository.
414
+
Take a look at part 3 of [6-testing-parallel-code/challenge](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/6-testing-parallel-code/challenge) in the exercises repository.
415
415
416
416
:::::::::::::::::::::::::::::::: solution
417
417
418
-
A solution is provided in [6-testing-parallel-code/solution](https://github.com/UCL-ARC/fortran-unit-testing-exercises/tree/main/episodes/6-testing-parallel-code/solution).
418
+
A solution is provided in [6-testing-parallel-code/solution](https://github.com/carpentries-incubator/fortran-unit-testing/tree/main/exercises/6-testing-parallel-code/solution).
0 commit comments