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
Copy file name to clipboardExpand all lines: book/en/src/base/chapter_1.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,10 +54,15 @@ d2x install d2mcpp
54
54
55
55
```bash
56
56
cd d2mcpp
57
-
mcpp test
57
+
mcpp test -p solutions # verify the environment: 52 reference answers, all green
58
+
mcpp test# your progress table: the exercises, all red for now
58
59
```
59
60
60
-
> The exercises **are** the tests, and they ship unfinished — so this is *supposed* to come out all red. What it verifies is everything around them: the toolchain resolved, the `d2x` library built, and the runner reached every exercise. Note that `solutions/` is not a workspace member, so `mcpp test` never runs it; copy it over the exercise files and only then does the same command go all green (that is exactly what CI does).
61
+
> `solutions/` is a real mcpp package (`solutions/mcpp.toml` + `solutions/tests/`), so the first command actually compiles and runs all 52 reference answers — green means your toolchain is fine. The second is your own progress table: the exercises **are** the tests and they ship unfinished, so red is exactly where you start.
62
+
>
63
+
> An answer and its exercise are paired by their `tests/`-relative path:
0 commit comments