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