Skip to content

Commit

Permalink
add ./- tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Nov 30, 2017
1 parent 8f9f971 commit 4b7109d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/constructor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,18 @@ 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 () {
var res = new BN(str, 16);
res;
}, /Invalid character in /);
});
})
});
});

describe('with Array input', function () {
Expand Down

0 comments on commit 4b7109d

Please sign in to comment.