Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/Dockerfile.ep-5
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ghcr.io/ucl-arc/fortran-unit-testing-exercises:main

COPY --chown=vscode episodes/5-debugging-a-broken-test /home/vscode/5-debugging-a-broken-test
COPY --chown=vscode episodes/5-debugging-a-failing-test /home/vscode/5-debugging-a-failing-test

WORKDIR /home/vscode/5-debugging-a-broken-test/challenge
WORKDIR /home/vscode/5-debugging-a-failing-test/challenge

# Fix intentional bug in code
RUN sed -i -E 's/.*matrix\(row, col\) = temp_matrix\(row, col\)/matrix\(col, row\) = temp_matrix\(row, col\)/g' src/matrix_transforms.f90
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ symmetric matrix and is equal to its own transpose, thus the order of the indice
We can fix the src with the following change

```diff
--- a/episodes/4-debugging-a-broken-test/challenge/src/matrix_transforms.f90
+++ b/episodes/4-debugging-a-broken-test/challenge/src/matrix_transforms.f90
--- a/episodes/4-debugging-a-failing-test/challenge/src/matrix_transforms.f90
+++ b/episodes/4-debugging-a-failing-test/challenge/src/matrix_transforms.f90
@@ -22,7 +22,7 @@ contains

do row = 1, nrow
Expand Down