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 70fb06a

Browse filesBrowse files
committed
doc: clarify assert.fail doc
PR-URL: #4186 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Klauke <romaaan.git@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
1 parent e3187cc commit 70fb06a
Copy full SHA for 70fb06a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/assert.markdown‎

Copy file name to clipboardExpand all lines: doc/api/assert.markdown
+3-2Lines changed: 3 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Tests shallow, coercive equality with the equal comparison operator ( `==` ).
6262

6363
## assert.fail(actual, expected, message, operator)
6464

65-
Throws an exception that displays the values for `actual` and `expected`
66-
separated by the provided operator.
65+
Throws an `AssertionError`. If `message` is falsy, it displays the values for
66+
`actual` and `expected` separated by the provided `operator`. Otherwise, it
67+
displays `message` (and does not use `actual`, `expected`, and `operator`).
6768

6869
## assert.ifError(value)
6970

0 commit comments

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