Skip to content

Commit 7249b55

Browse files
committed
sync and replace unit tests for crypto square
1 parent 6cfa806 commit 7249b55

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

exercises/practice/crypto-square/.meta/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"sshine",
2222
"stkent",
2323
"vdemeester",
24+
"Xinri",
2425
"Zaldrick"
2526
],
2627
"files": {

exercises/practice/crypto-square/.meta/tests.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ description = "8 character plaintext results in 3 chunks, the last one with a tr
3232

3333
[fbcb0c6d-4c39-4a31-83f6-c473baa6af80]
3434
description = "54 character plaintext results in 7 chunks, the last two with trailing spaces"
35+
include = false
36+
37+
[33fd914e-fa44-445b-8f38-ff8fbc9fe6e6]
38+
description = "54 character plaintext results in 8 chunks, the last two with trailing spaces"
39+
reimplements = "fbcb0c6d-4c39-4a31-83f6-c473baa6af80"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ public void eightCharacterPlaintextResultsInThreeChunksWithATrailingSpace() {
7474

7575
assertThat(cryptoSquare.getCiphertext()).isEqualTo(expectedOutput);
7676
}
77-
77+
7878
@Disabled("Remove to run test")
7979
@Test
80-
@DisplayName("54 character plaintext results in 7 chunks, the last two with trailing spaces")
81-
public void fiftyFourCharacterPlaintextResultsInSevenChunksWithTrailingSpaces() {
80+
@DisplayName("54 character plaintext results in 8 chunks, the last two with trailing spaces")
81+
public void fiftyFourCharacterPlaintextResultsInEightChunksWithTrailingSpaces() {
8282
CryptoSquare cryptoSquare = new CryptoSquare("If man was meant to stay on the ground, god would have " +
8383
"given us roots.");
8484
String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ";

0 commit comments

Comments
 (0)