Skip to content

Commit a3f6ad0

Browse files
committed
SoC-2025-microproject: some indentation tweaks of code snippets
They were not rendered properly in the website. So, try fixing indentation to check if it helps correct the rendering.
1 parent baafed3 commit a3f6ad0

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

SoC-2025-Microprojects.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,30 @@ with Git's dedicated test helpers like `test_path_is_file`.
5353

5454
#### Steps to Complete
5555
1. Find a test script using old-style path checks:
56-
```sh
57-
git grep "test -[efd]" t/
58-
```
56+
```sh
57+
git grep "test -[efd]" t/
58+
```
5959

6060
2. Look for patterns like:
61-
```sh
62-
test -f path/to/file # old way
63-
test_path_is_file path/to/file # new way
61+
```sh
62+
test -f path/to/file # old way
63+
test_path_is_file path/to/file # new way
6464

65-
test -d some/directory # old way
66-
test_path_is_dir some/directory # new way
67-
```
65+
test -d some/directory # old way
66+
test_path_is_dir some/directory # new way
67+
```
6868

6969
3. Important: Only replace checks that are actually testing for conditions, not
7070
those used in flow control. For example:
71-
```sh
72-
# DON'T change this - it's flow control
73-
if test -e "file.txt"; then
74-
do_something
75-
fi
76-
77-
# DO change this - it's a test assertion
78-
test -e "file.txt" || error "file.txt should exist"
79-
```
71+
```sh
72+
# DON'T change this - it's flow control
73+
if test -e "file.txt"; then
74+
do_something
75+
fi
76+
77+
# DO change this - it's a test assertion
78+
test -e "file.txt" || error "file.txt should exist"
79+
```
8080

8181
#### Notes
8282
- Start small: Pick a test file with just a few instances to convert

0 commit comments

Comments
 (0)