Skip to content

Commit 5ad85a4

Browse files
committed
crypto-square: Fix invalid tests which were chunked on the square size instead of the actual order.
1 parent ca94e01 commit 5ad85a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ public void normalizedCipherTextIsSplitByHeightOfSquare() {
106106
@Test
107107
public void normalizedCipherNotExactlyDivisibleBy5SpillsIntoSmallerSegment() {
108108
Crypto crypto = new Crypto("Madness, and then illumination.");
109-
String expectedOutput = "msemo aanin dninn dlaet ltshu i";
109+
String expectedOutput = "msemo aanin dnin ndla etlt shui";
110110

111111
assertEquals(expectedOutput, crypto.getNormalizedCipherText());
112112
}
113113

114114
@Test
115115
public void normalizedCipherIsSplitIntoSegmentsOfCorrectSize() {
116116
Crypto crypto = new Crypto("If man was meant to stay on the ground god would have given us roots");
117-
String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghns seoau";
117+
String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau";
118118

119119
assertEquals(expectedOutput, crypto.getNormalizedCipherText());
120120
}

0 commit comments

Comments
 (0)