From 73dd02ecc4356123557068d1b159cd631908c98f Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Tue, 23 Aug 2022 22:54:11 +0200 Subject: [PATCH] remove useless test --- tests/index.js | 2 +- tests/xor.js | 58 -------------------------------------------------- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 tests/xor.js diff --git a/tests/index.js b/tests/index.js index 72a6883..faa1cec 100644 --- a/tests/index.js +++ b/tests/index.js @@ -1 +1 @@ -require("./xor.js") \ No newline at end of file +//TODO: add some useful test cases \ No newline at end of file diff --git a/tests/xor.js b/tests/xor.js deleted file mode 100644 index 8797d1a..0000000 --- a/tests/xor.js +++ /dev/null @@ -1,58 +0,0 @@ -const xor = require("../extra_modules/xor.js") -const crypto = require("crypto") - -const randomString = (length = 4) => { - let chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; - let str = ''; - for (let i = 0; i < length; i++) { - str += chars.charAt(Math.floor(Math.random() * chars.length)); - } - return str; - -}; - -const attempts = 500000 - -const per = attempts/100 - -for(let i=0;i