From 5e722ddb13b281e4bc61e57d41d4a119b5e50dcc Mon Sep 17 00:00:00 2001 From: juanelas Date: Thu, 12 Dec 2019 09:10:26 +0100 Subject: [PATCH] browser minified version removed due to a bug. More browser tests added. Fixed tests --- test/browser/tests.js | 2 +- test/modPow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser/tests.js b/test/browser/tests.js index 83287b2..e8e9fa2 100644 --- a/test/browser/tests.js +++ b/test/browser/tests.js @@ -499,7 +499,7 @@ describe('modPow', function () { }); } describe('Time profiling', function () { - let iterations = 3000; + let iterations = 500; it(`just testing ${iterations} iterations of a big modular exponentiation (1024 bits)`, function () { const p = BigInt('103920301461718841589267304263845359224454055603847417021399996422142529929535423886894599506329362009085557636432288745748144369296043048325513558512136442971686130986388589421125262751724362880217790112013162815676017250234401214198365302142787009943498370856167174244675719638815809347261773472114842038647'); const b = BigInt('313632271690673451924314047671460131678794095260951233878123501752357966284491455239133687519908410656818506813151659324961829045286402303082891913186909806785080978448037486178337722667190743610785429936585699831407575170854873682955317589189564880931807976657385223632835801016017549762825562427694700595'); diff --git a/test/modPow.js b/test/modPow.js index 8b28c00..c4ea31c 100644 --- a/test/modPow.js +++ b/test/modPow.js @@ -42,7 +42,7 @@ describe('modPow', function () { }); } describe('Time profiling', function () { - let iterations = 3000; + let iterations = 500; it(`just testing ${iterations} iterations of a big modular exponentiation (1024 bits)`, function () { const p = BigInt('103920301461718841589267304263845359224454055603847417021399996422142529929535423886894599506329362009085557636432288745748144369296043048325513558512136442971686130986388589421125262751724362880217790112013162815676017250234401214198365302142787009943498370856167174244675719638815809347261773472114842038647'); const b = BigInt('313632271690673451924314047671460131678794095260951233878123501752357966284491455239133687519908410656818506813151659324961829045286402303082891913186909806785080978448037486178337722667190743610785429936585699831407575170854873682955317589189564880931807976657385223632835801016017549762825562427694700595');