test: fix tap parser fails if a test logs a number#46056
test: fix tap parser fails if a test logs a number#46056nodejs-github-bot merged 8 commits intonodejs:mainfrom
Conversation
|
Review requested:
|
|
Can you add a test case? |
Sure. |
|
Hey @cjihrig @manekinekko, Have a look at these changes, |
manekinekko
left a comment
There was a problem hiding this comment.
The fix LGTM. However, I'd recommend moving the fix to the upper-level logic of the parser since we need to catch all possible invalid syntax encountered by each nested parsing rule.
The most common top-level parsing rule is TAPDocument().
|
Thanks @adhu95 for suggestions, Then we don't need to pass planStart and planEnd as an argument to #Plan method...? WDYT? |
I don't think it's a good idea, unless I'm missing something it looks like it makes more sense to keep them as arguments. |
This comment was marked as outdated.
This comment was marked as outdated.
|
There are some failing checks, is there anything wrong with this Pull Request? |
This comment was marked as outdated.
This comment was marked as outdated.
|
Landed in 4c08c20 |
|
Congratulations @pulkit-30 🎉 |
Thanks a lot @manekinekko for your support and reviews 😇 |
PR-URL: nodejs/node#46056 Fixes: nodejs/node#46048 Reviewed-By: Moshe Atlow <[email protected]> (cherry picked from commit 4c08c20e575a0954fe3977a20e9f52b4980a2e48)
PR-URL: nodejs/node#46056 Fixes: nodejs/node#46048 Reviewed-By: Moshe Atlow <[email protected]> (cherry picked from commit 4c08c20e575a0954fe3977a20e9f52b4980a2e48)
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#46056 Fixes: nodejs#46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Backport-PR-URL: #46839 Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #46056 Backport-PR-URL: #46839 Fixes: #46048 Reviewed-By: Moshe Atlow <[email protected]>
fixes: #46048
code: test.mjs
Before changes:
After changes:
I tried to fix this bug, let me know if these changes are acceptable or to be done at some other place.