-
Notifications
You must be signed in to change notification settings - Fork 458
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
Several small fixes and fix for #67 #80
Conversation
}); | ||
|
||
it('should merge three adjacent whitespaces', function() { | ||
nodeContent = [['s', ' '], ['s', ' \n'], ['s', ' \n']]; |
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.
synthetic test, can't be in real life
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.
And previous too.
But this kind of tree may be produced on first step in processing and i must ensure that second step will work correctly. We should have both integration and unit tests. This is a unit test.
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.
Agree, accepted.
}); | ||
|
||
it('should remove empty ruleset', function() { | ||
assert.equal(comb.processString(' b {} /*123*/'), ' /*123*/'); |
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.
I meant to insert comment into a rule, not after.
Several small fixes and fix for #67
No description provided.