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...
1 parent 1e6eb0f commit bfb4bf556dc0ddd66429e1e9c0cc43458932ad71 @trevnorris trevnorris committed Jun 22, 2012
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.