浏览代码

Restructured tests directory

n1474335 6 年之前
父节点
当前提交
c7e9115994
共有 62 个文件被更改,包括 122 次插入135 次删除
  1. 3 16
      Gruntfile.js
  2. 1 1
      src/core/config/scripts/newOperation.mjs
  3. 1 1
      tests/operations/TestRegister.mjs
  4. 59 59
      tests/operations/index.mjs
  5. 1 1
      tests/operations/tests/BCD.mjs
  6. 1 1
      tests/operations/tests/BSON.mjs
  7. 1 1
      tests/operations/tests/Base58.mjs
  8. 1 1
      tests/operations/tests/Base62.mjs
  9. 1 1
      tests/operations/tests/Base64.mjs
  10. 1 1
      tests/operations/tests/BitwiseOp.mjs
  11. 1 1
      tests/operations/tests/ByteRepr.mjs
  12. 1 1
      tests/operations/tests/CSV.mjs
  13. 1 1
      tests/operations/tests/CartesianProduct.mjs
  14. 1 1
      tests/operations/tests/CharEnc.mjs
  15. 1 1
      tests/operations/tests/Checksum.mjs
  16. 1 1
      tests/operations/tests/Ciphers.mjs
  17. 1 1
      tests/operations/tests/Code.mjs
  18. 1 1
      tests/operations/tests/Comment.mjs
  19. 1 1
      tests/operations/tests/Compress.mjs
  20. 1 1
      tests/operations/tests/ConditionalJump.mjs
  21. 1 1
      tests/operations/tests/Crypt.mjs
  22. 1 1
      tests/operations/tests/DateTime.mjs
  23. 1 1
      tests/operations/tests/ExtractEmailAddresses.mjs
  24. 1 1
      tests/operations/tests/Fork.mjs
  25. 1 1
      tests/operations/tests/FromDecimal.mjs
  26. 1 1
      tests/operations/tests/FromGeohash.mjs
  27. 1 1
      tests/operations/tests/Hash.mjs
  28. 1 1
      tests/operations/tests/HaversineDistance.mjs
  29. 1 1
      tests/operations/tests/Hexdump.mjs
  30. 1 1
      tests/operations/tests/Image.mjs
  31. 1 1
      tests/operations/tests/JSONBeautify.mjs
  32. 1 1
      tests/operations/tests/JSONMinify.mjs
  33. 1 1
      tests/operations/tests/JWTDecode.mjs
  34. 1 1
      tests/operations/tests/JWTSign.mjs
  35. 1 1
      tests/operations/tests/JWTVerify.mjs
  36. 1 1
      tests/operations/tests/Jump.mjs
  37. 1 1
      tests/operations/tests/MS.mjs
  38. 1 1
      tests/operations/tests/Magic.mjs
  39. 1 1
      tests/operations/tests/Media.mjs
  40. 1 1
      tests/operations/tests/MorseCode.mjs
  41. 1 1
      tests/operations/tests/NetBIOS.mjs
  42. 1 1
      tests/operations/tests/OTP.mjs
  43. 1 1
      tests/operations/tests/PGP.mjs
  44. 1 1
      tests/operations/tests/PHP.mjs
  45. 1 1
      tests/operations/tests/ParseIPRange.mjs
  46. 1 1
      tests/operations/tests/ParseQRCode.mjs
  47. 1 1
      tests/operations/tests/ParseTLV.mjs
  48. 1 1
      tests/operations/tests/PowerSet.mjs
  49. 1 1
      tests/operations/tests/Regex.mjs
  50. 1 1
      tests/operations/tests/Register.mjs
  51. 1 1
      tests/operations/tests/RemoveDiacritics.mjs
  52. 1 1
      tests/operations/tests/Rotate.mjs
  53. 1 1
      tests/operations/tests/SeqUtils.mjs
  54. 1 1
      tests/operations/tests/SetDifference.mjs
  55. 1 1
      tests/operations/tests/SetIntersection.mjs
  56. 1 1
      tests/operations/tests/SetUnion.mjs
  57. 1 1
      tests/operations/tests/SplitColourChannels.mjs
  58. 1 1
      tests/operations/tests/StrUtils.mjs
  59. 1 1
      tests/operations/tests/SymmetricDifference.mjs
  60. 1 1
      tests/operations/tests/TextEncodingBruteForce.mjs
  61. 1 1
      tests/operations/tests/ToGeohash.mjs
  62. 1 1
      tests/operations/tests/TranslateDateTimeFormat.mjs

+ 3 - 16
Gruntfile.js

@@ -30,7 +30,7 @@ module.exports = function (grunt) {
         ["clean:node", "clean:config", "exec:generateConfig", "webpack:node", "chmod:build"]);
         ["clean:node", "clean:config", "exec:generateConfig", "webpack:node", "chmod:build"]);
 
 
     grunt.registerTask("test",
     grunt.registerTask("test",
-        "A task which runs all the tests in test/tests.",
+        "A task which runs all the tests in the tests directory.",
         ["exec:generateConfig", "exec:tests"]);
         ["exec:generateConfig", "exec:tests"]);
 
 
     grunt.registerTask("docs",
     grunt.registerTask("docs",
@@ -148,7 +148,7 @@ module.exports = function (grunt) {
             core: ["src/core/**/*.{js,mjs}", "!src/core/vendor/**/*", "!src/core/operations/legacy/**/*"],
             core: ["src/core/**/*.{js,mjs}", "!src/core/vendor/**/*", "!src/core/operations/legacy/**/*"],
             web: ["src/web/**/*.{js,mjs}"],
             web: ["src/web/**/*.{js,mjs}"],
             node: ["src/node/**/*.{js,mjs}"],
             node: ["src/node/**/*.{js,mjs}"],
-            tests: ["test/**/*.{js,mjs}"],
+            tests: ["tests/**/*.{js,mjs}"],
         },
         },
         jsdoc: {
         jsdoc: {
             options: {
             options: {
@@ -246,19 +246,6 @@ module.exports = function (grunt) {
                     }),
                     }),
                 ]
                 ]
             },
             },
-            tests: {
-                mode: "development",
-                target: "node",
-                entry: "./test/index.mjs",
-                externals: [NodeExternals()],
-                output: {
-                    filename: "index.js",
-                    path: __dirname + "/build/test"
-                },
-                plugins: [
-                    new webpack.DefinePlugin(BUILD_CONSTANTS)
-                ]
-            },
             node: {
             node: {
                 mode: "production",
                 mode: "production",
                 target: "node",
                 target: "node",
@@ -400,7 +387,7 @@ module.exports = function (grunt) {
                 ].join(";")
                 ].join(";")
             },
             },
             tests: {
             tests: {
-                command: "node --experimental-modules --no-warnings --no-deprecation test/index.mjs"
+                command: "node --experimental-modules --no-warnings --no-deprecation tests/operations/index.mjs"
             }
             }
         },
         },
     });
     });

+ 1 - 1
src/core/config/scripts/newOperation.mjs

@@ -222,7 +222,7 @@ export default ${moduleName};
     console.log(`\nNext steps:
     console.log(`\nNext steps:
 1. Add your operation to ${colors.green("src/core/config/Categories.json")}
 1. Add your operation to ${colors.green("src/core/config/Categories.json")}
 2. Write your operation code.
 2. Write your operation code.
-3. Write tests in ${colors.green("test/tests/operations/")}
+3. Write tests in ${colors.green("tests/operations/tests/")}
 4. Run ${colors.cyan("npm run lint")} and ${colors.cyan("npm run test")}
 4. Run ${colors.cyan("npm run lint")} and ${colors.cyan("npm run test")}
 5. Submit a Pull Request to get your operation added to the official CyberChef repository.`);
 5. Submit a Pull Request to get your operation added to the official CyberChef repository.`);
 
 

+ 1 - 1
test/TestRegister.mjs → tests/operations/TestRegister.mjs

@@ -8,7 +8,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import Chef from "../src/core/Chef";
+import Chef from "../../src/core/Chef";
 
 
 (function() {
 (function() {
     /**
     /**

+ 59 - 59
test/index.mjs → tests/operations/index.mjs

@@ -24,67 +24,67 @@ global.ENVIRONMENT_IS_WEB = function() {
 };
 };
 
 
 import TestRegister from "./TestRegister";
 import TestRegister from "./TestRegister";
-import "./tests/operations/BCD";
-import "./tests/operations/BSON";
-import "./tests/operations/Base58";
-import "./tests/operations/Base64";
-import "./tests/operations/Base62";
-import "./tests/operations/BitwiseOp";
-import "./tests/operations/ByteRepr";
-import "./tests/operations/CartesianProduct";
-import "./tests/operations/CharEnc";
-import "./tests/operations/Checksum";
-import "./tests/operations/Ciphers";
-import "./tests/operations/Code";
-import "./tests/operations/Comment";
-import "./tests/operations/Compress";
-import "./tests/operations/ConditionalJump";
-import "./tests/operations/Crypt";
-import "./tests/operations/CSV";
-import "./tests/operations/DateTime";
-import "./tests/operations/ExtractEmailAddresses";
-import "./tests/operations/Fork";
-import "./tests/operations/FromDecimal";
-import "./tests/operations/FromGeohash";
-import "./tests/operations/Hash";
-import "./tests/operations/HaversineDistance";
-import "./tests/operations/Hexdump";
-import "./tests/operations/Image";
-import "./tests/operations/Jump";
-import "./tests/operations/JSONBeautify";
-import "./tests/operations/JSONMinify";
-import "./tests/operations/JWTDecode";
-import "./tests/operations/JWTSign";
-import "./tests/operations/JWTVerify";
-import "./tests/operations/MS";
-import "./tests/operations/Magic";
-import "./tests/operations/MorseCode";
-import "./tests/operations/NetBIOS";
-import "./tests/operations/OTP";
-import "./tests/operations/PGP";
-import "./tests/operations/PHP";
-import "./tests/operations/ParseIPRange";
-import "./tests/operations/ParseQRCode";
-import "./tests/operations/PowerSet";
-import "./tests/operations/Regex";
-import "./tests/operations/Register";
-import "./tests/operations/RemoveDiacritics";
-import "./tests/operations/Rotate";
-import "./tests/operations/SeqUtils";
-import "./tests/operations/SetDifference";
-import "./tests/operations/SetIntersection";
-import "./tests/operations/SetUnion";
-import "./tests/operations/StrUtils";
-import "./tests/operations/SymmetricDifference";
-import "./tests/operations/TextEncodingBruteForce";
-import "./tests/operations/ToGeohash";
-import "./tests/operations/TranslateDateTimeFormat";
-import "./tests/operations/Magic";
-import "./tests/operations/ParseTLV";
-import "./tests/operations/Media";
+import "./tests/BCD";
+import "./tests/BSON";
+import "./tests/Base58";
+import "./tests/Base64";
+import "./tests/Base62";
+import "./tests/BitwiseOp";
+import "./tests/ByteRepr";
+import "./tests/CartesianProduct";
+import "./tests/CharEnc";
+import "./tests/Checksum";
+import "./tests/Ciphers";
+import "./tests/Code";
+import "./tests/Comment";
+import "./tests/Compress";
+import "./tests/ConditionalJump";
+import "./tests/Crypt";
+import "./tests/CSV";
+import "./tests/DateTime";
+import "./tests/ExtractEmailAddresses";
+import "./tests/Fork";
+import "./tests/FromDecimal";
+import "./tests/FromGeohash";
+import "./tests/Hash";
+import "./tests/HaversineDistance";
+import "./tests/Hexdump";
+import "./tests/Image";
+import "./tests/Jump";
+import "./tests/JSONBeautify";
+import "./tests/JSONMinify";
+import "./tests/JWTDecode";
+import "./tests/JWTSign";
+import "./tests/JWTVerify";
+import "./tests/MS";
+import "./tests/Magic";
+import "./tests/MorseCode";
+import "./tests/NetBIOS";
+import "./tests/OTP";
+import "./tests/PGP";
+import "./tests/PHP";
+import "./tests/ParseIPRange";
+import "./tests/ParseQRCode";
+import "./tests/PowerSet";
+import "./tests/Regex";
+import "./tests/Register";
+import "./tests/RemoveDiacritics";
+import "./tests/Rotate";
+import "./tests/SeqUtils";
+import "./tests/SetDifference";
+import "./tests/SetIntersection";
+import "./tests/SetUnion";
+import "./tests/StrUtils";
+import "./tests/SymmetricDifference";
+import "./tests/TextEncodingBruteForce";
+import "./tests/ToGeohash";
+import "./tests/TranslateDateTimeFormat";
+import "./tests/Magic";
+import "./tests/ParseTLV";
+import "./tests/Media";
 
 
 // Cannot test operations that use the File type yet
 // Cannot test operations that use the File type yet
-//import "./tests/operations/SplitColourChannels";
+//import "./tests/SplitColourChannels";
 
 
 let allTestsPassing = true;
 let allTestsPassing = true;
 const testStatusCounts = {
 const testStatusCounts = {

+ 1 - 1
test/tests/operations/BCD.mjs → tests/operations/tests/BCD.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/BSON.mjs → tests/operations/tests/BSON.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Base58.mjs → tests/operations/tests/Base58.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Base62.mjs → tests/operations/tests/Base62.mjs

@@ -7,7 +7,7 @@
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
 
 
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Base64.mjs → tests/operations/tests/Base64.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const ALL_BYTES = [
 const ALL_BYTES = [
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",

+ 1 - 1
test/tests/operations/BitwiseOp.mjs → tests/operations/tests/BitwiseOp.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ByteRepr.mjs → tests/operations/tests/ByteRepr.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const ALL_BYTES = [
 const ALL_BYTES = [
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",

+ 1 - 1
test/tests/operations/CSV.mjs → tests/operations/tests/CSV.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const EXAMPLE_CSV = `A,B,C,D,E,F\r
 const EXAMPLE_CSV = `A,B,C,D,E,F\r
 1,2,3,4,5,6\r
 1,2,3,4,5,6\r

+ 1 - 1
test/tests/operations/CartesianProduct.mjs → tests/operations/tests/CartesianProduct.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/CharEnc.mjs → tests/operations/tests/CharEnc.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Checksum.mjs → tests/operations/tests/Checksum.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const BASIC_STRING = "The ships hung in the sky in much the same way that bricks don't.";
 const BASIC_STRING = "The ships hung in the sky in much the same way that bricks don't.";
 const UTF8_STR = "ნუ პანიკას";
 const UTF8_STR = "ნუ პანიკას";

+ 1 - 1
test/tests/operations/Ciphers.mjs → tests/operations/tests/Ciphers.mjs

@@ -7,7 +7,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 
 
 TestRegister.addTests([
 TestRegister.addTests([

+ 1 - 1
test/tests/operations/Code.mjs → tests/operations/tests/Code.mjs

@@ -7,7 +7,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const JSON_TEST_DATA = {
 const JSON_TEST_DATA = {
     "store": {
     "store": {

+ 1 - 1
test/tests/operations/Comment.mjs → tests/operations/tests/Comment.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const ALL_BYTES = [
 const ALL_BYTES = [
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",

+ 1 - 1
test/tests/operations/Compress.mjs → tests/operations/tests/Compress.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ConditionalJump.mjs → tests/operations/tests/ConditionalJump.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Crypt.mjs → tests/operations/tests/Crypt.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     /**
     /**

+ 1 - 1
test/tests/operations/DateTime.mjs → tests/operations/tests/DateTime.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ExtractEmailAddresses.mjs → tests/operations/tests/ExtractEmailAddresses.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Fork.mjs → tests/operations/tests/Fork.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/FromDecimal.mjs → tests/operations/tests/FromDecimal.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @licence Apache-2.0
  * @licence Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/FromGeohash.mjs → tests/operations/tests/FromGeohash.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Hash.mjs → tests/operations/tests/Hash.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/HaversineDistance.mjs → tests/operations/tests/HaversineDistance.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Hexdump.mjs → tests/operations/tests/Hexdump.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const ALL_BYTES = [
 const ALL_BYTES = [
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
     "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",

+ 1 - 1
test/tests/operations/Image.mjs → tests/operations/tests/Image.mjs

@@ -7,7 +7,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/JSONBeautify.mjs → tests/operations/tests/JSONBeautify.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/JSONMinify.mjs → tests/operations/tests/JSONMinify.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/JWTDecode.mjs → tests/operations/tests/JWTDecode.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const outputObject = JSON.stringify({
 const outputObject = JSON.stringify({
     String: "SomeString",
     String: "SomeString",

+ 1 - 1
test/tests/operations/JWTSign.mjs → tests/operations/tests/JWTSign.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const inputObject = JSON.stringify({
 const inputObject = JSON.stringify({
     String: "SomeString",
     String: "SomeString",

+ 1 - 1
test/tests/operations/JWTVerify.mjs → tests/operations/tests/JWTVerify.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const outputObject = JSON.stringify({
 const outputObject = JSON.stringify({
     String: "SomeString",
     String: "SomeString",

+ 1 - 1
test/tests/operations/Jump.mjs → tests/operations/tests/Jump.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/MS.mjs → tests/operations/tests/MS.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Magic.mjs → tests/operations/tests/Magic.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 
 
 TestRegister.addTests([
 TestRegister.addTests([

+ 1 - 1
test/tests/operations/Media.mjs → tests/operations/tests/Media.mjs

@@ -4,7 +4,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/MorseCode.mjs → tests/operations/tests/MorseCode.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/NetBIOS.mjs → tests/operations/tests/NetBIOS.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/OTP.mjs → tests/operations/tests/OTP.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/PGP.mjs → tests/operations/tests/PGP.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 const ASCII_TEXT = "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.";
 const ASCII_TEXT = "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.";
 
 

+ 1 - 1
test/tests/operations/PHP.mjs → tests/operations/tests/PHP.mjs

@@ -7,7 +7,7 @@
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
 
 
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ParseIPRange.mjs → tests/operations/tests/ParseIPRange.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ParseQRCode.mjs → tests/operations/tests/ParseQRCode.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ParseTLV.mjs → tests/operations/tests/ParseTLV.mjs

@@ -6,7 +6,7 @@
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
 
 
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/PowerSet.mjs → tests/operations/tests/PowerSet.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Regex.mjs → tests/operations/tests/Regex.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Register.mjs → tests/operations/tests/Register.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/RemoveDiacritics.mjs → tests/operations/tests/RemoveDiacritics.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/Rotate.mjs → tests/operations/tests/Rotate.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 
 
 TestRegister.addTests([
 TestRegister.addTests([

+ 1 - 1
test/tests/operations/SeqUtils.mjs → tests/operations/tests/SeqUtils.mjs

@@ -5,7 +5,7 @@
  * @copyright Copyright 2017
  * @copyright Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/SetDifference.mjs → tests/operations/tests/SetDifference.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/SetIntersection.mjs → tests/operations/tests/SetIntersection.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/SetUnion.mjs → tests/operations/tests/SetUnion.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

文件差异内容过多而无法显示
+ 1 - 1
tests/operations/tests/SplitColourChannels.mjs


+ 1 - 1
test/tests/operations/StrUtils.mjs → tests/operations/tests/StrUtils.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2017
  * @copyright Crown Copyright 2017
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/SymmetricDifference.mjs → tests/operations/tests/SymmetricDifference.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/TextEncodingBruteForce.mjs → tests/operations/tests/TextEncodingBruteForce.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/ToGeohash.mjs → tests/operations/tests/ToGeohash.mjs

@@ -5,7 +5,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

+ 1 - 1
test/tests/operations/TranslateDateTimeFormat.mjs → tests/operations/tests/TranslateDateTimeFormat.mjs

@@ -6,7 +6,7 @@
  * @copyright Crown Copyright 2018
  * @copyright Crown Copyright 2018
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
-import TestRegister from "../../TestRegister";
+import TestRegister from "../TestRegister";
 
 
 TestRegister.addTests([
 TestRegister.addTests([
     {
     {

部分文件因为文件数量过多而无法显示