acEx(actual, expected, prefix)
Return a formatted message that compares actual/expected values.
-
actual
any —actual value
-
expected
any —expected value
-
prefix
string —added to the start of the returned message
(default:''
)
returns
string
See
-
maybeStringify
—
used by this function to produce the string representation of the actual and expected values
-
UnexpectedOutputError
—
uses this function to generate the error message
Examples
No Prefix
Output
<<<<<<< actual
A
=======
B
>>>>>>> expected
Prefix
Output
Unexpected output
<<<<<<< actual
A
=======
B
>>>>>>> expected