test: added msg verification on assert.throws#10890
Closed
tmeisenh wants to merge 1 commit intonodejs:masterfrom
Closed
test: added msg verification on assert.throws#10890tmeisenh wants to merge 1 commit intonodejs:masterfrom
tmeisenh wants to merge 1 commit intonodejs:masterfrom
Conversation
Trott
reviewed
Jan 19, 2017
test/parallel/test-assert.js
Outdated
| assert.throws(makeBlock(a.deepEqual, /a/i, /a/)); | ||
| assert.throws(makeBlock(a.deepEqual, /a/m, /a/)); | ||
| assert.throws(makeBlock(a.deepEqual, /a/igm, /a/im)); | ||
| assert.throws(makeBlock(a.deepEqual, /ab/, /a/), /\/ab\/ deepEqual \/a\//); |
Member
There was a problem hiding this comment.
Would be great if the regexp matched the full error message start to finish, so more like this:
/^AssertionError: \/ab\/ deepEqual \/a\/$/
Contributor
Author
|
Added changes from last review from @Trott. |
cjihrig
approved these changes
Jan 20, 2017
cjihrig
requested changes
Jan 20, 2017
test/parallel/test-assert.js
Outdated
Contributor
There was a problem hiding this comment.
Sorry, can you add $ to the end of the regular expressions.
Note: The string representation of a regexp reorders the modifiers.
targos
approved these changes
Jan 21, 2017
addaleax
approved these changes
Jan 21, 2017
lpinca
approved these changes
Jan 21, 2017
Member
cjihrig
approved these changes
Jan 21, 2017
Trott
pushed a commit
to Trott/io.js
that referenced
this pull request
Jan 22, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: nodejs#10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Member
|
Landed in 3e7a414. |
italoacasas
pushed a commit
to italoacasas/node
that referenced
this pull request
Jan 25, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: nodejs#10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
italoacasas
pushed a commit
to italoacasas/node
that referenced
this pull request
Jan 27, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: nodejs#10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Merged
italoacasas
pushed a commit
to italoacasas/node
that referenced
this pull request
Jan 30, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: nodejs#10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
italoacasas
pushed a commit
to italoacasas/node
that referenced
this pull request
Jan 30, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: nodejs#10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
Mar 8, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: #10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
Mar 8, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: #10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
Mar 9, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: #10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Merged
MylesBorins
pushed a commit
that referenced
this pull request
Mar 9, 2017
Add regular expression for error message validation to instances of assert.throws() in test-assert.js. PR-URL: #10890 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: The string representation of a regexp reorders the modifiers.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
tests