Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use plus/minus unicode in error msg

Figured it would be easier to read the error message if the unicode
character \u00B1 was used, instead of "+-".
  • Loading branch information...
commit bfb4bf556dc0ddd66429e1e9c0cc43458932ad71 1 parent 1e6eb0f
@trevnorris trevnorris authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/assert/macros.js
View
2  lib/assert/macros.js
@@ -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}");
}
};

0 comments on commit bfb4bf5

Please sign in to comment.
Something went wrong with that request. Please try again.