From 4b7109dc4b69a917fafe4f10a9f8eb48bf693ef2 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 30 Nov 2017 14:34:38 +1100 Subject: [PATCH] add ./- tests --- test/constructor-test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/constructor-test.js b/test/constructor-test.js index 385634b..0356b79 100644 --- a/test/constructor-test.js +++ b/test/constructor-test.js @@ -114,8 +114,10 @@ describe('BN.js/Constructor', function () { '0000000z', '000000gg', '0000gg00', - 'ffffggff', - 'ffffggff', + 'fffggfff', + '/0000000', + '0-000000', // if -, is first, that is OK + 'ff.fffff', 'hexadecimal' ].forEach(function (str) { assert.throws(function () { @@ -123,7 +125,7 @@ describe('BN.js/Constructor', function () { res; }, /Invalid character in /); }); - }) + }); }); describe('with Array input', function () {