Skip to content

Commit da38c36

Browse files
committed
Add missing test case to CryptoSquareTest
1 parent d460a46 commit da38c36

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This repository contains the source for the exercises of the Java track on Exerc
1010
Next to the exercises, the Java track also consists of the following tooling:
1111

1212
- [exercism/java-test-runner] - The Exercism [test runner][docs-test-runners] for the Java track that automatically verifies if a submitted solution passes all of the exercise's tests.
13-
- [exercism/java-representer] - The Exercism [representer][docs-representers] for the Java track that creates normalized representations of submitted solutions.
13+
- [exercism/java-representer]a - The Exercism [representer][docs-representers] for the Java track that creates normalized representations of submitted solutions.
1414
- [exercism/java-analyzer] - The Exercism [analyzer][docs-analyzers] for the Java track that automatically provides comments on submitted solutions.
1515

1616
## Contributing Guide

exercises/practice/crypto-square/src/test/java/CryptoSquareTest.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,26 @@ public void eightCharacterPlaintextResultsInThreeChunksWithATrailingSpace() {
6666

6767
assertThat(cryptoSquare.getCiphertext()).isEqualTo(expectedOutput);
6868
}
69+
// Legacy test from older canonical-data.json – consider removing if outdated
6970

70-
@Disabled("Remove to run test")
71+
72+
/*@Disabled("Remove to run test")
7173
@Test
7274
public void fiftyFourCharacterPlaintextResultsInSevenChunksWithTrailingSpaces() {
7375
CryptoSquare cryptoSquare = new CryptoSquare("If man was meant to stay on the ground, god would have " +
7476
"given us roots.");
7577
String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ";
7678
7779
assertThat(cryptoSquare.getCiphertext()).isEqualTo(expectedOutput);
78-
}
80+
}*/
81+
@Disabled("Remove to run test")
82+
@Test
83+
public void fiftyFourCharacterPlaintextResultsInEightChunksWithTrailingSpaces() {
84+
CryptoSquare cryptoSquare = new CryptoSquare("If man was meant to stay on the ground, god would have " +
85+
"given us roots.");
86+
String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ";
87+
88+
assertThat(cryptoSquare.getCiphertext()).isEqualTo(expectedOutput);
89+
}
90+
7991
}

0 commit comments

Comments
 (0)