Skip to content

Commit

Permalink
Use plus/minus unicode in error msg
Browse files Browse the repository at this point in the history
Figured it would be easier to read the error message if the unicode
character \u00B1 was used, instead of "+-".
  • Loading branch information
trevnorris committed Jun 22, 2012
1 parent 1e6eb0f commit bfb4bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assert/macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for (var key in messages) {

assert.epsilon = function (eps, actual, expected, message) {
if (Math.abs(actual - expected) > eps) {
assert.fail(actual, expected, message || "expected {expected} +-"+ eps +", but was {actual}");
assert.fail(actual, expected, message || "expected {expected} \u00B1"+ eps +", but was {actual}");
}
};

Expand Down

0 comments on commit bfb4bf5

Please sign in to comment.