Rotor stops | Partial plugboard | Decryption preview |
";
+ html += "Rotor stops | Partial plugboard | Decryption preview |
\n";
for (const [setting, stecker, decrypt] of run.result) {
- html += `${setting} | ${stecker} | ${decrypt} |
\n`;
+ html += `${setting} | ${stecker} | ${decrypt} |
\n`;
}
html += "
\n";
}
diff --git a/tests/operations/tests/Bombe.mjs b/tests/operations/tests/Bombe.mjs
index 9e5a79c6..b44e032c 100644
--- a/tests/operations/tests/Bombe.mjs
+++ b/tests/operations/tests/Bombe.mjs
@@ -11,7 +11,7 @@ TestRegister.addTests([
// Plugboard for this test is BO LC KE GA
name: "Bombe: 3 rotor (self-stecker)",
input: "BBYFLTHHYIJQAYBBYS",
- expectedMatch: /LGA<\/td> | SS<\/td> | VFISUSGTKSTMPSUNAK<\/td>/,
+ expectedMatch: / | LGA<\/td> {2} | SS<\/td> {2} | VFISUSGTKSTMPSUNAK<\/td>/,
recipeConfig: [
{
"op": "Bombe",
@@ -31,7 +31,7 @@ TestRegister.addTests([
// This test produces a menu that doesn't use the first letter, which is also a good test
name: "Bombe: 3 rotor (other stecker)",
input: "JBYALIHDYNUAAVKBYM",
- expectedMatch: / | LGA<\/td> | AG<\/td> | QFIMUMAFKMQSKMYNGW<\/td>/,
+ expectedMatch: / | LGA<\/td> {2} | AG<\/td> {2} | QFIMUMAFKMQSKMYNGW<\/td>/,
recipeConfig: [
{
"op": "Bombe",
@@ -50,7 +50,7 @@ TestRegister.addTests([
{
name: "Bombe: crib offset",
input: "AAABBYFLTHHYIJQAYBBYS", // first three chars here are faked
- expectedMatch: / | LGA<\/td> | SS<\/td> | VFISUSGTKSTMPSUNAK<\/td>/,
+ expectedMatch: / | LGA<\/td> {2} | SS<\/td> {2} | VFISUSGTKSTMPSUNAK<\/td>/,
recipeConfig: [
{
"op": "Bombe",
@@ -69,7 +69,7 @@ TestRegister.addTests([
{
name: "Bombe: multiple stops",
input: "BBYFLTHHYIJQAYBBYS",
- expectedMatch: / | LGA<\/td> | TT<\/td> | VFISUSGTKSTMPSUNAK<\/td>/,
+ expectedMatch: / | LGA<\/td> {2} | TT<\/td> {2} | VFISUSGTKSTMPSUNAK<\/td>/,
recipeConfig: [
{
"op": "Bombe",
@@ -88,7 +88,7 @@ TestRegister.addTests([
{
name: "Bombe: checking machine",
input: "BBYFLTHHYIJQAYBBYS",
- expectedMatch: / | LGA<\/td> | TT AG BO CL EK FF HH II JJ SS YY<\/td> | THISISATESTMESSAGE<\/td>/,
+ expectedMatch: / | LGA<\/td> {2} | TT AG BO CL EK FF HH II JJ SS YY<\/td> {2} | THISISATESTMESSAGE<\/td>/,
recipeConfig: [
{
"op": "Bombe",
@@ -108,7 +108,7 @@ TestRegister.addTests([
{
name: "Bombe: 4 rotor",
input: "LUOXGJSHGEDSRDOQQX",
- expectedMatch: / | LHSC<\/td> | SS<\/td> | HHHSSSGQUUQPKSEKWK<\/td>/,
+ expectedMatch: / | LHSC<\/td> {2} | SS<\/td> {2} | HHHSSSGQUUQPKSEKWK<\/td>/,
recipeConfig: [
{
"op": "Bombe",
diff --git a/tests/operations/tests/MultipleBombe.mjs b/tests/operations/tests/MultipleBombe.mjs
index 8e2cc685..32d2db08 100644
--- a/tests/operations/tests/MultipleBombe.mjs
+++ b/tests/operations/tests/MultipleBombe.mjs
@@ -10,7 +10,7 @@ TestRegister.addTests([
{
name: "Multi-Bombe: 3 rotor",
input: "BBYFLTHHYIJQAYBBYS",
- expectedMatch: / | LGA<\/td> | SS<\/td> | VFISUSGTKSTMPSUNAK<\/td>/,
+ expectedMatch: / | LGA<\/td> {2} | SS<\/td> {2} | VFISUSGTKSTMPSUNAK<\/td>/,
recipeConfig: [
{
"op": "Multiple Bombe",
|