Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6787913

Browse filesBrowse files
ryzokukenMylesBorins
authored andcommitted
test: add more information to assert.strictEqual
PR-URL: #19162 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 28880cf commit 6787913
Copy full SHA for 6787913

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-crypto-hmac.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-hmac.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,12 @@ for (let i = 0, l = rfc4231.length; i < l; i++) {
269269
expected,
270270
`Test HMAC-${hash} rfc 4231 case ${i + 1}: ${actual} must be ${expected}`
271271
);
272-
assert.strictEqual(actual, strRes, 'Should get same result from stream');
272+
assert.strictEqual(
273+
actual,
274+
strRes,
275+
`Should get same result from stream (hash: ${hash} and case: ${i + 1})` +
276+
` => ${actual} must be ${strRes}`
277+
);
273278
}
274279
}
275280

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.