Add comprehensive tests for Modular Inverse operation

This commit is contained in:
Philip Le Riche 2026-03-04 17:27:18 +00:00
parent 48405b4da0
commit 71faeca5dd

View File

@ -56,7 +56,7 @@ TestRegister.addTests([
{ {
name: "Modular Inverse: using input field for modulus", name: "Modular Inverse: using input field for modulus",
input: "17", input: "17",
expectedOutput: "38", expectedOutput: "7",
recipeConfig: [ recipeConfig: [
{ {
op: "Modular Inverse", op: "Modular Inverse",
@ -67,7 +67,7 @@ TestRegister.addTests([
{ {
name: "Modular Inverse: large number (RSA-like)", name: "Modular Inverse: large number (RSA-like)",
input: "", input: "",
expectedOutput: "4969696969697", expectedOutput: "934281398294",
recipeConfig: [ recipeConfig: [
{ {
op: "Modular Inverse", op: "Modular Inverse",