Skip to content

fix: clearer bad-usage errors for match? stubs - #243

Open
felipeofdev-ai wants to merge 1 commit into
nubank:masterfrom
felipeofdev-ai:fix/206-match-usage-stubs
Open

felipeofdev-ai wants to merge 1 commit into
nubank:masterfrom
felipeofdev-ai:fix/206-match-usage-stubs

Conversation

@felipeofdev-ai

Copy link
Copy Markdown

Summary

  • Placeholder match? / thrown-match? / friends now throw IllegalArgumentException with a clear must be used inside of clojure.test/is message when invoked outside is.
  • Fix docstring typos (withing, excpetion, thrown-with-match? arity docs).

Why

Outside is, users previously saw either opaque assert errors or confusing unresolved-symbol failures depending on how they referred the stubs. Issue #206 asked for descriptive bad-usage stubs.

Fixes #206

Test plan

  • Docstring / throw-message change only (stubs are not exercised by the match suite)
  • CI green

— Felipe Fernandes · Systems & Agentic AI Engineer
https://github.com/felipeofdev-ai · https://felipeofdev-ai.github.io/

Made with Cursor

Throw IllegalArgumentException with an explicit must-be-used-inside-is
message, and fix docstring typos (withing/excpetion/thrown-with-match?).

Fixes nubank#206

Signed-off-by: Felipe Fernandes <felipe.of.dev@gmail.com>
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.

Bad usage stubs for match? and thrown-match?

1 participant