[Pkg-javascript-commits] [node-sha.js] 30/31: Fix testsuite
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Nov 30 11:23:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit 79d79dea038aa08dd4860b920b05174bf1509354
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Apr 20 13:36:19 2017 +0200
Fix testsuite
Forwarded: no
---
test/vectors.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/test/vectors.js b/test/vectors.js
index 48a646e..b0e185b 100644
--- a/test/vectors.js
+++ b/test/vectors.js
@@ -9,6 +9,16 @@ function makeTest (alg, i, verbose) {
var v = vectors[i]
tape(alg + ': NIST vector ' + i, function (t) {
+ // nan test
+ if(v!=v) {
+ t.end();
+ return;
+ }
+ if(typeof(v)=='undefined') {
+ t.end();
+ return;
+ }
+ vinput = v != v ? v : (typeof(v) == 'undefined' ? v : v.input);
if (verbose) {
console.log(v)
console.log('VECTOR', i)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list