-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Write a sourcepos test for each NodeValue
variant
#498
base: main
Are you sure you want to change the base?
Conversation
Some of these are covered at the bottom of the specific test file, such as https://github.com/kivikakk/comrak/blob/main/src/tests/wikilinks.rs#L218-L276, though not everything is covered. So more coverage of this is super helpful. Yeah, there is still more work to do on getting inline sourcepos working consistently. |
How do you feel about the whole |
be9fb71
to
12ebd94
Compare
List // end is 3:0 | ||
| Item // end is 3:0 | ||
| TaskItem // end is 4:0 | ||
| DescriptionItem // end is 4:0 | ||
| DescriptionTerm // end is 3:0 | ||
| DescriptionDetails // end is 4:0 | ||
| HtmlInline // end is 1:31 but should be 3:14 | ||
| LineBreak // start is 1:15 but should be 1:13 | ||
| Code // is 1:8-1:12 but should be 1:7-1:13 | ||
| ThematicBreak // end is 4:0 | ||
| Link // inconsistent between link types | ||
| Math // is 3:2-3:6 but should be 3:1-3:7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If y'all can confirm that all of these are bugs, I'll try my hand at fixing them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think those are all incorrect sourcesos 😢
12ebd94
to
38f2403
Compare
Not sure if these are already covered elsewhere. I wrote one for my own knowledge, and kept going... A few are disabled because I believe the returned sourcepos are incorrect.
Apologies for stacking this on top of #497. Looking at just 38f2403 might be best.