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
You can generate your token [here](https://github.com/settings/tokens). Only public access permissions are needed.
@@ -155,19 +155,21 @@ You can preview changes locally before pushing them to GitHub. To do this:
155
155
If your article includes code snippets, it’s helpful to include tests to ensure that they run correctly.
156
156
157
157
1. Name the code snippet:
158
-
```{.cpp file=snippet-name}
158
+
159
+
```{.cpp file=snippet-name}
159
160
// code here
160
161
```
161
-
2. Run `extract_snippets.py` from the `test` directory to extract snippets into header files. Create a test file that includes these headers and checks their behavior.
162
-
3. You can run all tests with the `test.sh` script:
162
+
163
+
3. Run `extract_snippets.py` from the `test` directory to extract snippets into header files. Create a test file that includes these headers and checks their behavior.
164
+
4. You can run all tests with the `test.sh` script:
163
165
```console
164
-
$ cd test
165
-
$ ./test.sh
166
+
cd test
167
+
./test.sh
166
168
```
167
169
**Example Output:**
168
170
```
169
171
Running test_aho_corasick.cpp - Passed in 635 ms
170
-
Running test_balanced_brackets.cpp - Passed in 1390 ms
172
+
Running test_balanced_brackets.cpp - Passed in 1390 ms
0 commit comments