CyberChef/tests/operations/tests/FromDecimal.mjs

34 lines
765 B
JavaScript
Raw Normal View History

2018-10-22 11:51:26 +02:00
/**
* From Decimal tests
*
* @author qistoph
* @copyright Crown Copyright 2018
* @licence Apache-2.0
*/
import TestRegister from "../../lib/TestRegister.mjs";
2018-10-22 11:51:26 +02:00
TestRegister.addTests([
2018-11-07 15:39:33 +01:00
{
name: "From Decimal",
input: "83 97 109 112 108 101 32 84 101 120 116",
expectedOutput: "Sample Text",
recipeConfig: [
{
op: "From Decimal",
args: ["Space", false]
},
],
},
{
name: "From Decimal with negatives",
input: "-130,-140,-152,-151,115,33,0,-1",
expectedOutput: "~this!\u0000\u00ff",
recipeConfig: [
{
op: "From Decimal",
args: ["Comma", true]
},
],
},
2018-10-22 11:51:26 +02:00
]);