[Pkg-javascript-commits] [node-shasum] 09/23: failing tests for non-deterministic stringify
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:06:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-shasum.
commit b6b8fb6ff5237fc120d3e9329e973fdf4c575ee0
Author: James Halliday <mail at substack.net>
Date: Wed Jul 17 17:19:59 2013 -0700
failing tests for non-deterministic stringify
---
test/index.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/index.js b/test/index.js
index 9a9c8e7..0c804ef 100644
--- a/test/index.js
+++ b/test/index.js
@@ -11,4 +11,8 @@ equal(hash(new Buffer('abc')),
equal(hash('ab\xff'),'ba5142a8207bd61baddf325088732e71cbfe8eb6')
equal(hash(new Buffer('ab\xff').toString()),
'ba5142a8207bd61baddf325088732e71cbfe8eb6')
+equal(hash({a:1,b:2,c:3}), hash({c:3,b:2,a:1}))
+equal(hash({a:1,b:2,c:3}), hash({c:3,b:2,a:1}))
+equal(hash({a:1,b:[2,3],c:4}), hash({c:4,b:[2,3],a:1}))
+equal(hash({a:1,b:[2,{c:3,d:4}],e:5}), hash({e:5,b:[2,{d:4,c:3}],a:1}))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shasum.git
More information about the Pkg-javascript-commits
mailing list