fix args #16

Merged
navicore merged 1 commit from args into main 2026-05-09 04:39:38 +00:00
Owner

All four drivers verified. Outputs match the documented expectations
exactly:

Exercise: 01 user-arg-count
Output matches docs: 0 / 1 / 3 ✓
────────────────────────────────────────
Exercise: 02 arg-empty?
Output matches docs: missing/empty / present / missing-or-empty ✓
────────────────────────────────────────
Exercise: 03 arg-or
Output matches docs: (default) / arg / explicit-empty ✓ (verified earlier)
────────────────────────────────────────
Exercise: 04 summary
Output matches docs: three branches ✓ (verified earlier)

What changed in this pass:

  • Each chapter-21 exercise header gained a ## To see it on a real command
    line section with:
    • A copy-pasteable try-*.seq driver that includes the exercise file (so
      the student's own work-in-progress is what runs)
    • The seqc build invocation
    • Three or four sample invocations with expected outputs

The auto-tests still gate completion in seqlings watch (so the chapter
doesn't lose its automated coverage), and the prose makes the multi-arg
branches reachable for the student. I did NOT swap any exercise to mode =
"compile" — kept all four as mode = "test" since the existing assertions
still pull real weight.

One note: the include mechanism only works when the build is run from the
project root (the path exercises/21-args/... is relative to cwd). The prose
says "in the project root" but doesn't make a big deal of it — open to
making that more explicit if you'd rather.

All four drivers verified. Outputs match the documented expectations exactly: Exercise: 01 user-arg-count Output matches docs: 0 / 1 / 3 ✓ ──────────────────────────────────────── Exercise: 02 arg-empty? Output matches docs: missing/empty / present / missing-or-empty ✓ ──────────────────────────────────────── Exercise: 03 arg-or Output matches docs: (default) / arg / explicit-empty ✓ (verified earlier) ──────────────────────────────────────── Exercise: 04 summary Output matches docs: three branches ✓ (verified earlier) What changed in this pass: - Each chapter-21 exercise header gained a ## To see it on a real command line section with: - A copy-pasteable try-*.seq driver that includes the exercise file (so the student's own work-in-progress is what runs) - The seqc build invocation - Three or four sample invocations with expected outputs The auto-tests still gate completion in seqlings watch (so the chapter doesn't lose its automated coverage), and the prose makes the multi-arg branches reachable for the student. I did NOT swap any exercise to mode = "compile" — kept all four as mode = "test" since the existing assertions still pull real weight. One note: the include mechanism only works when the build is run from the project root (the path exercises/21-args/... is relative to cwd). The prose says "in the project root" but doesn't make a big deal of it — open to making that more explicit if you'd rather.
fix args
All checks were successful
CI - Linux / CI - Linux x86_64 (pull_request) Successful in 45s
7e7553b383
All four drivers verified. Outputs match the documented expectations
  exactly:

  Exercise: 01 user-arg-count
  Output matches docs: 0 / 1 / 3 ✓
  ────────────────────────────────────────
  Exercise: 02 arg-empty?
  Output matches docs: missing/empty / present / missing-or-empty ✓
  ────────────────────────────────────────
  Exercise: 03 arg-or
  Output matches docs: (default) / arg / explicit-empty ✓ (verified earlier)
  ────────────────────────────────────────
  Exercise: 04 summary
  Output matches docs: three branches ✓ (verified earlier)

  What changed in this pass:
  - Each chapter-21 exercise header gained a ## To see it on a real command
  line section with:
    - A copy-pasteable try-*.seq driver that includes the exercise file (so
  the student's own work-in-progress is what runs)
    - The seqc build invocation
    - Three or four sample invocations with expected outputs

  The auto-tests still gate completion in seqlings watch (so the chapter
  doesn't lose its automated coverage), and the prose makes the multi-arg
  branches reachable for the student. I did NOT swap any exercise to mode =
  "compile" — kept all four as mode = "test" since the existing assertions
  still pull real weight.

  One note: the include mechanism only works when the build is run from the
  project root (the path exercises/21-args/... is relative to cwd). The prose
   says "in the project root" but doesn't make a big deal of it — open to
  making that more explicit if you'd rather.
navicore deleted branch args 2026-05-09 04:39:38 +00:00
Sign in to join this conversation.
No description provided.