From 3cbce725bc0b82c528efa281200e22325fb12930 Mon Sep 17 00:00:00 2001 From: Marcel Weikum Date: Wed, 14 May 2025 07:24:18 +0200 Subject: [PATCH 1/2] Synced missing test --- exercises/practice/crypto-square/.meta/tests.toml | 5 +++++ exercises/practice/crypto-square/crypto_square_test.cpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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/crypto_square_test.cpp b/exercises/practice/crypto-square/crypto_square_test.cpp index 6ef4be1ad..54e3982b2 100644 --- a/exercises/practice/crypto-square/crypto_square_test.cpp +++ b/exercises/practice/crypto-square/crypto_square_test.cpp @@ -46,9 +46,9 @@ TEST_CASE( TEST_CASE( // clang-format off - "54 character plaintext results in 7 chunks, the last two with trailing spaces", + "54 character plaintext results in 8 chunks, the last two with trailing spaces", // clang-format on - "[fbcb0c6d-4c39-4a31-83f6-c473baa6af80]") { + "[33fd914e-fa44-445b-8f38-ff8fbc9fe6e6]") { REQUIRE("imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau " == crypto_square::cipher("If man was meant to stay on the ground, god " "would have given us roots.") From ddec0dd539cd61b7cb92f196aaf0af569305ce37 Mon Sep 17 00:00:00 2001 From: Marcel Weikum Date: Wed, 14 May 2025 08:39:08 +0200 Subject: [PATCH 2/2] Changed include guards for affine_cipher --- exercises/practice/affine-cipher/affine_cipher.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exercises/practice/affine-cipher/affine_cipher.h b/exercises/practice/affine-cipher/affine_cipher.h index f400dec1e..048850d1c 100644 --- a/exercises/practice/affine-cipher/affine_cipher.h +++ b/exercises/practice/affine-cipher/affine_cipher.h @@ -1,10 +1,7 @@ -#ifndef AFFINE_CIPHER_H -#define AFFINE_CIPHER_H +#pragma once namespace affine_cipher { // TODO: add your solution here -} // namespace affine_cipher - -#endif // AFFINE_CIPHER_H \ No newline at end of file +} // namespace affine_cipher \ No newline at end of file