Skip to content

The assertions are std/test - #6

Merged
martin-k-m merged 1 commit into
mainfrom
feat/std-test
Sep 15, 2026
Merged

martin-k-m merged 1 commit into
mainfrom
feat/std-test

Conversation

@martin-k-m

Copy link
Copy Markdown
Collaborator

twill 1.11 ships std/test, the assertions every satellite harness copied by hand, and its own header names spool's is_none_i64 and equal_opt_i64 as the workaround its fail(name, why) replaces: both recorded a failure as check(name, false) and threw away the reason.

  • Every suite imports std/test as t. The three sites that used those two helpers are a match whose wrong arm calls t.fail with what was actually there.
  • tests/harness.tw keeps one predicate, before, and nothing that counts. A helper that imports std/test gets its own counter and its failures never reach the suite's report (measured in skein with a probe that came back green with a failure in it); the harness comment says so.
  • report returns the status instead of calling exit, and prints its summary in the shape twill test reads, so the runner shows the counts beside each file: 207 assertions across six suites, where it showed none.
  • README output block, CHANGELOG, and a new docs/needs.md entry 15, since spool's file had no test-runner entry and skein's said the ask should be its own entry when someone wrote it. The pin was already 1.12.0.

Verified locally on twill 1.12.0: twill check . clean on every file, twill test tests 6 of 6, no em dashes.

🤖 Generated with Claude Code

twill 1.11 ships the assertions every satellite harness copied by hand,
and its own header names spool's is_none_i64 and equal_opt_i64 as the
workaround its fail(name, why) replaces. Every suite imports std/test
now, the three sites that used those helpers are a match whose wrong
arm calls t.fail with what was there, and tests/harness.tw keeps one
predicate and nothing that counts. The runner reads std/test's summary
line, so twill test shows the counts beside each file: 207 assertions
across six suites. docs/needs.md gains entry 15 to record it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@martin-k-m
martin-k-m merged commit 4781cf6 into main Sep 15, 2026
2 checks passed
@martin-k-m
martin-k-m deleted the feat/std-test branch September 15, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant