FromDecimal.mjs 757 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * From Decimal tests
  3. *
  4. * @author qistoph
  5. * @copyright Crown Copyright 2018
  6. * @licence Apache-2.0
  7. */
  8. import TestRegister from "../../TestRegister";
  9. TestRegister.addTests([
  10. {
  11. name: "From Decimal",
  12. input: "83 97 109 112 108 101 32 84 101 120 116",
  13. expectedOutput: "Sample Text",
  14. recipeConfig: [
  15. {
  16. op: "From Decimal",
  17. args: ["Space", false]
  18. },
  19. ],
  20. },
  21. {
  22. name: "From Decimal with negatives",
  23. input: "-130,-140,-152,-151,115,33,0,-1",
  24. expectedOutput: "~this!\u0000\u00ff",
  25. recipeConfig: [
  26. {
  27. op: "From Decimal",
  28. args: ["Comma", true]
  29. },
  30. ],
  31. },
  32. ]);