Skip to content

fix: restore parser tests - #543

Closed
jcreedcmu wants to merge 3 commits into
leanprover:mainfrom
jcreedcmu:restore-tests
Closed

fix: restore parser tests#543
jcreedcmu wants to merge 3 commits into
leanprover:mainfrom
jcreedcmu:restore-tests

Conversation

@jcreedcmu

Copy link
Copy Markdown
Collaborator

This PR is made to find out the reason why the tests were deleted, or, in the event there wasn't a reason, to put them back.

Did:
find . -type f -exec sed -i 's/\bVerso\.Syntax/Lean.Doc.Syntax/g' {} +
find . -type f -exec sed -i 's/expected identifier/expected token/g' {} +
Manually inspected, all are mere whitespace changes or 'identifier' ~
'token' rewording changes.
@jcreedcmu

Copy link
Copy Markdown
Collaborator Author

The several commits in this PR were deliberately constructed so that I could
(a) see the changes induced by --update-expected as a diff, and
(b) see that there weren't very many such changes if I preemptively changed Verso.Syntax to Lean.Doc.Syntax in all of the .expected files, enough to manually review with confidence.

@david-christiansen

Copy link
Copy Markdown
Collaborator

When the parser was upstreamed, the tests went with it: https://github.com/leanprover/lean4/tree/master/tests/lean/docparse

I don't think there's a reason to have them two places, and the tests should follow the code. I'll go ahead and close this, please feel free to re-open if there's a detail I missed.

@jcreedcmu

jcreedcmu commented Oct 1, 2025 via email

Copy link
Copy Markdown
Collaborator Author

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