Commit 91fc966
committed
Zig Build System > Testing: fix code examples
This follows up on #545.
Although it did fix one compile error, fixing it actually revealed other
issues that are addressed by this pull request:
1. Both versions of `main.zig` were using the old `std.ArrayList` API
from when it was managed, but as of Zig 0.15.1, it is no longer
managed:
https://ziglang.org/download/0.15.1/release-notes.html#ArrayList-make-unmanaged-the-default
2. The file `unit-testing-skip-foreign/build.zig` was missing
`additional_option=test`, so the command `zig build --summary all`
was run instead of the intended command `zig build test --summary all`.1 parent 414c98a commit 91fc966
3 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
0 commit comments