Files
node/test/parallel
Ruben Bridgewater fc7b27ea78 assert: implement assert.match() and assert.doesNotMatch()
This adds a new functionality to the assertion module: a dedicated
check for regular expressions. So far it's possible to use
`assert.ok(regexp.test(string))`. This is not ideal though when it
comes to the error message, since it's not possible to know how
either of the input values look like. It's just known that the
assertion failed.
This allows to pass through the regular expression and the input
string. The string is then matched against the regular expression
and reports a expressive error message in case of a failure.

Backport-PR-URL: https://github.com/nodejs/node/pull/31431
PR-URL: https://github.com/nodejs/node/pull/30929
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2020-02-06 02:49:40 +00:00
..
2019-06-17 19:49:54 +02:00
2020-02-06 02:49:19 +00:00
2019-03-23 02:55:54 +01:00
2019-04-16 03:37:03 +02:00
2019-03-23 02:55:54 +01:00
2019-12-17 17:06:34 -05:00
2019-03-23 02:55:54 +01:00
2020-02-06 02:48:57 +00:00
2020-02-06 02:49:19 +00:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2020-02-06 02:49:15 +00:00
2020-02-06 02:49:15 +00:00
2020-02-06 02:49:15 +00:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00