diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-06-05 14:57:46 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-06-17 11:49:42 +0200 |
commit | b97b003c352cf9da5885ac0a5516fee0a767f134 (patch) | |
tree | 40c6fa33fa526ac03d80d47109168c5c87ebb365 /test/parallel/test-util-inspect.js | |
parent | 87a22cff77f923d69797c29a766b21f63f8dc5a9 (diff) | |
download | android-node-v8-b97b003c352cf9da5885ac0a5516fee0a767f134.tar.gz android-node-v8-b97b003c352cf9da5885ac0a5516fee0a767f134.tar.bz2 android-node-v8-b97b003c352cf9da5885ac0a5516fee0a767f134.zip |
util: use average bias while grouping arrays
This makes sure that strongly deviating entry length are taken into
account while grouping arrays.
PR-URL: https://github.com/nodejs/node/pull/28070
Refs: https://github.com/nodejs/node/issues/27690
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-util-inspect.js')
-rw-r--r-- | test/parallel/test-util-inspect.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index c264c409e5..e843cc49a8 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -2274,14 +2274,12 @@ assert.strictEqual( expected = [ '[', - ' 1, 1, 1,', - ' 1, 1, 1,', - ' 1, 1, 1,', - ' 1, 1, 1,', - ' 1, 1, 1,', - ' 1, 1, 1,', - ' 1, 1, 1,', - ' 1, 1, 1,', + ' 1, 1, 1, 1,', + ' 1, 1, 1, 1,', + ' 1, 1, 1, 1,', + ' 1, 1, 1, 1,', + ' 1, 1, 1, 1,', + ' 1, 1, 1, 1,', ' 1, 1, 123456789', ']' ].join('\n'); |