Removing ARITMETIC_OPTIONS from Delim.mjs

This commit is contained in:
BigYellowHammer 2021-10-05 22:33:56 +02:00
parent f9cbb6246b
commit 3a17b7dde2
3 changed files with 5 additions and 7 deletions

View file

@ -46,11 +46,6 @@ export const HASH_DELIM_OPTIONS = ["Line feed", "CRLF", "Space", "Comma"];
*/
export const IP_DELIM_OPTIONS = ["Line feed", "CRLF", "Space", "Comma", "Semi-colon"];
/**
* Math operations
*/
export const ARITMETIC_OPTIONS = ["Add", "Subtract", "Multiply", "Divide"];
/**
* Split delimiters.
*/

View file

@ -6,8 +6,11 @@
import BigNumber from "bignumber.js";
import Operation from "../Operation.mjs";
import { sum, sub, multi, div, createNumArrayFromTwoStrings } from "../lib/Arithmetic.mjs";
import { ARITMETIC_OPTIONS } from "../lib/Delim.mjs";
/**
* Math operations
*/
const ARITMETIC_OPTIONS = ["Add", "Subtract", "Multiply", "Divide"];
/**
* Sum operation

View file

@ -38,7 +38,7 @@ TestRegister.addTests([
]
},
{
name: "Multiply by value",
name: "Divide by value",
input: "10",
expectedOutput: "5",
recipeConfig: [