From cbe88eeb7a85db8b96bf9ed16ee442e512049dff Mon Sep 17 00:00:00 2001 From: xinri Date: Mon, 17 Nov 2025 23:48:23 +0100 Subject: [PATCH] [no important files changed] sync and replace unit tests for crypto square --- exercises/practice/crypto-square/.meta/config.json | 1 + exercises/practice/crypto-square/.meta/tests.toml | 5 +++++ .../crypto-square/src/test/java/CryptoSquareTest.java | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/exercises/practice/crypto-square/.meta/config.json b/exercises/practice/crypto-square/.meta/config.json index 83572a7b4..5f8c77cc7 100644 --- a/exercises/practice/crypto-square/.meta/config.json +++ b/exercises/practice/crypto-square/.meta/config.json @@ -21,6 +21,7 @@ "sshine", "stkent", "vdemeester", + "Xinri", "Zaldrick" ], "files": { diff --git a/exercises/practice/crypto-square/.meta/tests.toml b/exercises/practice/crypto-square/.meta/tests.toml index 085d142ea..94ef0819f 100644 --- a/exercises/practice/crypto-square/.meta/tests.toml +++ b/exercises/practice/crypto-square/.meta/tests.toml @@ -32,3 +32,8 @@ description = "8 character plaintext results in 3 chunks, the last one with a tr [fbcb0c6d-4c39-4a31-83f6-c473baa6af80] description = "54 character plaintext results in 7 chunks, the last two with trailing spaces" +include = false + +[33fd914e-fa44-445b-8f38-ff8fbc9fe6e6] +description = "54 character plaintext results in 8 chunks, the last two with trailing spaces" +reimplements = "fbcb0c6d-4c39-4a31-83f6-c473baa6af80" diff --git a/exercises/practice/crypto-square/src/test/java/CryptoSquareTest.java b/exercises/practice/crypto-square/src/test/java/CryptoSquareTest.java index b9a668a7a..9b9225487 100644 --- a/exercises/practice/crypto-square/src/test/java/CryptoSquareTest.java +++ b/exercises/practice/crypto-square/src/test/java/CryptoSquareTest.java @@ -77,8 +77,8 @@ public void eightCharacterPlaintextResultsInThreeChunksWithATrailingSpace() { @Disabled("Remove to run test") @Test - @DisplayName("54 character plaintext results in 7 chunks, the last two with trailing spaces") - public void fiftyFourCharacterPlaintextResultsInSevenChunksWithTrailingSpaces() { + @DisplayName("54 character plaintext results in 8 chunks, the last two with trailing spaces") + public void fiftyFourCharacterPlaintextResultsInEightChunksWithTrailingSpaces() { CryptoSquare cryptoSquare = new CryptoSquare("If man was meant to stay on the ground, god would have " + "given us roots."); String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ";