Skip to content

Rely on drop to verify the README examples - #23

Merged
tanglearncode merged 1 commit into
mainfrom
docs/readme-drop-verifies
Sep 14, 2026
Merged

tanglearncode merged 1 commit into
mainfrom
docs/readme-drop-verifies

Conversation

@tanglearncode

Copy link
Copy Markdown
Contributor

Dropping a Session already checks every expectation, but five README examples ended with session.verify(), so it looked required.

  • Removes those calls, and says in Usage that the session checks expectations when it is dropped.
  • Adds "Checking expectations during a test", which calls verify() before a second step.

tests/readme.rs is updated to match.

Dropping a Session already checks every expectation, but five README examples
ended with session.verify(), which made the call look required. Those calls
are removed, the Usage section says the session checks expectations when it
is dropped, and a new section shows verify() in the middle of a test.
tests/readme.rs mirrors the changes.
@tanglearncode
tanglearncode merged commit 5b01a13 into main Sep 14, 2026
12 checks passed
@tanglearncode
tanglearncode deleted the docs/readme-drop-verifies branch September 14, 2026 03:47
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