mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 06:01:02 +01:00
35 lines
670 B
JavaScript
35 lines
670 B
JavaScript
/**
|
|
* Power Set tests.
|
|
*
|
|
* @author d98762625
|
|
*
|
|
* @copyright Crown Copyright 2018
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "Power set: nothing",
|
|
input: "",
|
|
expectedOutput: "",
|
|
recipeConfig: [
|
|
{
|
|
op: "Power Set",
|
|
args: [","],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Power set",
|
|
input: "1 2 4",
|
|
expectedOutput: "\n4\n2\n1\n2 4\n1 4\n1 2\n1 2 4\n",
|
|
recipeConfig: [
|
|
{
|
|
op: "Power Set",
|
|
args: [" "],
|
|
},
|
|
],
|
|
},
|
|
]);
|