mirror of
https://github.com/gchq/CyberChef
synced 2025-03-14 05:46:56 +00:00
* Fix naming of OP with space
This commit is contained in:
parent
2374a2cbf0
commit
82ed84fc76
2 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ class BasicArithmetic extends Operation {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.name = "BasicArithmetic";
|
this.name = "Basic Arithmetic";
|
||||||
this.module = "Default";
|
this.module = "Default";
|
||||||
this.description = "Evalutes Basic Arithmetic. <br><br>e.g. <code>1+2-1</code> becomes <code>2</code>";
|
this.description = "Evalutes Basic Arithmetic. <br><br>e.g. <code>1+2-1</code> becomes <code>2</code>";
|
||||||
this.infoURL = "";
|
this.infoURL = "";
|
||||||
|
|
|
@ -11,7 +11,7 @@ import TestRegister from "../../lib/TestRegister.mjs";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
name: "BasicArithmetic: nothing",
|
name: "Basic Arithmetic: nothing",
|
||||||
input: "",
|
input: "",
|
||||||
expectedOutput: "",
|
expectedOutput: "",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
|
@ -22,7 +22,7 @@ TestRegister.addTests([
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "BasicArithmetic: Addition",
|
name: "Basic Arithmetic: Addition",
|
||||||
input: "1+2+3+4+5+6+7+8+9+0",
|
input: "1+2+3+4+5+6+7+8+9+0",
|
||||||
expectedOutput: 45,
|
expectedOutput: 45,
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
|
@ -33,7 +33,7 @@ TestRegister.addTests([
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "BasicArithmetic: Subtraction",
|
name: "Basic Arithmetic: Subtraction",
|
||||||
input: "100-9-8-7-6-5-4-3-2-1-0",
|
input: "100-9-8-7-6-5-4-3-2-1-0",
|
||||||
expectedOutput: 55,
|
expectedOutput: 55,
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
|
@ -44,7 +44,7 @@ TestRegister.addTests([
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "BasicArithmetic: Add + Sub",
|
name: "Basic Arithmetic: Add + Sub",
|
||||||
input: "1+2+3+4+5+6+7+8+9-9-8-7-6-5-4-3-2-1",
|
input: "1+2+3+4+5+6+7+8+9-9-8-7-6-5-4-3-2-1",
|
||||||
expectedOutput: 0,
|
expectedOutput: 0,
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
|
@ -55,7 +55,7 @@ TestRegister.addTests([
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "BasicArithmetic: Large number",
|
name: "Basic Arithmetic: Large number",
|
||||||
input: "999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999",
|
input: "999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999+999",
|
||||||
expectedOutput: 22977,
|
expectedOutput: 22977,
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
|
|
Loading…
Add table
Reference in a new issue