diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-07-03 02:06:57 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-08-04 10:04:32 +0200 |
commit | 0518b9edf33bfffac53ac5f706694a205ff754a2 (patch) | |
tree | 23b152f429dfadeb65b7ec97ab78b3214547c7ec /test/message/error_exit.out | |
parent | a2ec80851ceff8ba6745d6909c8a2434ddfdf568 (diff) | |
download | android-node-v8-0518b9edf33bfffac53ac5f706694a205ff754a2.tar.gz android-node-v8-0518b9edf33bfffac53ac5f706694a205ff754a2.tar.bz2 android-node-v8-0518b9edf33bfffac53ac5f706694a205ff754a2.zip |
assert: multiple improvements
1) Switched + / - and red / green in diffs. It seems like that style
is more natural to most people.
2) Short primitives do not use the diff anymore. Especially short
numbers can be read well like 1 !== 2. Cases that can not be
displayed like that (e.g., -0 and +0) use the regular diff output.
3) Improved error descriptions. It was not always clear what the
messages stood for. That should now be resolved.
4) Added a position indicator for single lines in case a tty is used
and the line is shorter than the visual columns.
5) Color detection is now done by checking stderr instead of stdout.
PR-URL: https://github.com/nodejs/node/pull/21628
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'test/message/error_exit.out')
-rw-r--r-- | test/message/error_exit.out | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/message/error_exit.out b/test/message/error_exit.out index 1935c18979..cc1edf46cb 100644 --- a/test/message/error_exit.out +++ b/test/message/error_exit.out @@ -3,11 +3,10 @@ assert.js:* throw new AssertionError(obj); ^ -AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B: -+ expected - actual +AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: + +1 !== 2 -- 1 -+ 2 at Object.<anonymous> (*test*message*error_exit.js:*:*) at Module._compile (internal/modules/cjs/loader.js:*:*) at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*) |