Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node -> MdqNode unit tests plus fixes #13

Merged
merged 21 commits into from
Jun 12, 2024
Merged

Node -> MdqNode unit tests plus fixes #13

merged 21 commits into from
Jun 12, 2024

Conversation

yshavit
Copy link
Owner

@yshavit yshavit commented Jun 12, 2024

Fairly big chunk of work, so I'm putting up a checkpoint.

  • Create a framework for testing mdast::Node -> MdqNode conversions. It includes a check (ignored for now) that we've covered all the Node branches
  • Add a bunch of tests
  • Refactor and finish implementation of link and image reference

yshavit added 21 commits June 10, 2024 21:12
Add test for Node::Root as a sanity check of the test framework.
This strategy lets you see the remaining variant names, not just the
count.
This way, it's not so much of a unit test of the mdast::Node as it is
of the conversion, which is what I really care about.

I still want to make sure I test each Node for the match, but the
results I check should be the MdqNodes that come out.
@yshavit yshavit merged commit 3478b88 into main Jun 12, 2024
4 checks passed
@yshavit yshavit deleted the test_nodes branch June 12, 2024 00:44
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