Skip to content

test: make var-link-test reliable#55

Merged
borkdude merged 1 commit intoborkdude:mainfrom
lread:lread/review-var-link-test
Mar 30, 2026
Merged

test: make var-link-test reliable#55
borkdude merged 1 commit intoborkdude:mainfrom
lread:lread/review-var-link-test

Conversation

@lread
Copy link
Copy Markdown
Contributor

@lread lread commented Mar 30, 2026

Turf usage of matcher-combinators embeds.
Write a helper fn to check if patterns exist in quickdoc output that does no backtracking. The backtracking was the cause of the combinatorial explosion when quickdoc output does not match expected patterns - for example, when making changes during development.

Also remove "fixup" which thought it was joining long lines that quickdoc wrapped. Quickdoc doesn't seem to wrap long lines at all (well, its use of pprint might wrap, but that's not relevant to this test). Quickdoc will join lines for the toc, though.
Account for this in expected patterns.

This, for now, means quickdoc is not using matcher-combinators anymore. Remove it from deps.

See #53 (comment)

Turf usage of matcher-combinators `embeds`.
Write a helper fn to check if patterns exist in quickdoc output that
does no backtracking. The backtracking was the cause of the
combinatorial explosion when quickdoc output does not match expected
patterns - for example, when making changes during development.

Also remove "fixup" which thought it was joining long lines that
quickdoc wrapped. Quickdoc doesn't seem to wrap long lines at all (well,
its use of pprint might wrap, but that's not relevant to this test).
Quickdoc will join lines for the toc, though.
Account for this in expected patterns.

This, for now, means quickdoc is not using matcher-combinators anymore.
Remove it from deps.

See borkdude#53 (comment)
@borkdude borkdude merged commit cc8a95b into borkdude:main Mar 30, 2026
3 checks passed
@borkdude
Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants