From 6d6e8e76586ef73ef19b61d03a25110b6b7fd715 Mon Sep 17 00:00:00 2001 From: juanelas Date: Tue, 7 Apr 2020 19:49:57 +0200 Subject: [PATCH] new tests for bitlengths that are not multiple of 8 --- test/browser/tests.js | 3 +++ test/prime.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/browser/tests.js b/test/browser/tests.js index ceb882b..b7d9c87 100644 --- a/test/browser/tests.js +++ b/test/browser/tests.js @@ -74,7 +74,10 @@ describe('isProbablyPrime', function () { // <-- const bitLengths = [ + 8, + 255, 256, + 258, 512, 1024, 2048, diff --git a/test/prime.js b/test/prime.js index 1263c50..acbdde2 100644 --- a/test/prime.js +++ b/test/prime.js @@ -7,7 +7,10 @@ const chai = require('chai') // <-- const bitLengths = [ + 8, + 255, 256, + 258, 512, 1024, 2048,