This code:
var assert = require('assert');
assert.fail(1, 2, 'foo', '===')
outputs "AssertionError: foo", not including the actual, expected and
operator parameters in the toString value of the Error.
This code:
assert.fail(1, 2, null, '===')
outputs "AssertionError: 1 === 2", not including the message parameter
in the toString value of the Error.
Doesn't this seem odd? It seems like one would either want to output a
message or have one created from actual, expected and operator
parameters, maybe like these calls:
assert.fail('foo');
assert.fail(1, 2, '==='); // where the last parameter defaults to '==='
--
R. Mark Volkmann
Object Computing, Inc.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en