-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Update majority of original
and new
test beds
#1229
Conversation
Well Snyk, WIP, and review guidelines seem to work. :) |
The strikethrough required GFM because strikethrough is part of that spec; chances are this will evolve over time and doesn't need to be right now.
This is a lot of change. I've converted and eliminated what I think is fair. Thinking we should merge this with the understanding that there will be some we might need to do differently (bringing in the full pages from Gruber) or that I need a second set of eyes on (the redos). |
original
and new
test beds
}); | ||
}); | ||
|
||
describe('CommonMark 0.28 Fenced code blocks', function() { | ||
var section = 'Fenced code blocks'; | ||
|
||
// var shouldPassButFails = []; | ||
var shouldPassButFails = [93, 95, 96, 97, 101, 102, 106, 108, 111, 112, 113]; | ||
var shouldPassButFails = [88, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 104, 105, 106, 108, 109, 110, 111, 112, 113, 115]; |
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.
Why are more tests failing than before?
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.
See testOptions
. Before I turned headerIds
off xhtml
on...this time, I turned pedantic
off, turned gfm
off, headerIds
off, xhtml
on, and changed the value for langPrefix
to match the one from the specification.
Marked doesn't really have a "CommonMark" setting or option. Those were the combination of settings that I thought would us close enough.
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.
At least that's my best guess.
test/specs/gfm/gfm-spec.js
Outdated
describe('GFM 0.28 Tables', function() { | ||
var section = 'Tables'; | ||
|
||
// TODO: Verify exmaple 193 is valid and passing | ||
// var shouldPassButFails = []; |
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.
You can remove this comment
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.
...see last reply...Someone can uncomment that one, comment out the real one, and be set to go.
describe('Marked Issues & PRs', function() { | ||
var section = 'Blockquotes'; | ||
|
||
// var shouldPassButFails = []; |
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.
Remove unused comment.
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.
...see last reply...Someone can uncomment that one, comment out the real one, and be set to go.
describe('Marked Issues & PRs', function() { | ||
var section = 'Strikethrough'; | ||
|
||
// var shouldPassButFails = []; |
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.
Remove unused comment.
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.
...see last reply...Someone can uncomment that one, comment out the real one, and be set to go.
|
||
MarkedTester.test = function(spec, section, ignore, options) { | ||
if (spec.section === section) { | ||
var shouldFail = ~ignore.indexOf(spec.example); |
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.
Have you considered moving the logic for ignore into this test() function so that each test doesn't need to concat itself (should be less prone to error).
MarkedTester.test = function(spec, section, options, shouldPassButFails, willNotBeAttemptedByCoreTeam) {
var ignore = (shouldPassButFails || []).concat(willNotBeAttemptedByCoreTeam || []);
// ...
}
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.
This way, the last two parameters could be optional and make each test a little smaller.
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.
That's an interesting point and speaks a little to the "remove unused comments" reviews as well.
I'm trying to consider this as a long-term tool for others. So, each test suite is a self-contained way for someone to look and know what's going on...and easily get down to work...hence the commented out empty arrays. Someone can uncomment that one, comment out the real one, and be set to go.
Definitely, considering moving the concat step to the test though. Trying to focus on 8fold over the weekend though.
I'm closing this in favor of #1444 |
Marked version: 0.3.19
Markdown flavor: Markdown.pl|CommonMark|GitHub Flavored Markdown|n/a
Description
Need help understanding why test exists
Contributor
Committer
In most cases, this should be a different person than the contributor.