File tree 3 files changed +23
-5
lines changed
exercises/practice/crypto-square 3 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
- # This is an auto-generated file. Regular comments will be removed when this
2
- # file is regenerated. Regenerating will not touch any manually added keys,
3
- # so comments can be added in a "comment" key.
1
+ # This is an auto-generated file.
2
+ #
3
+ # Regenerating this file via `configlet sync` will:
4
+ # - Recreate every `description` key/value pair
5
+ # - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6
+ # - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7
+ # - Preserve any other key/value pair
8
+ #
9
+ # As user-added comments (using the # character) will be removed when this file
10
+ # is regenerated, comments can be added via a `comment` key.
4
11
5
12
[407c3837-9aa7-4111-ab63-ec54b58e8e9f ]
6
13
description = " empty plaintext results in an empty ciphertext"
7
14
15
+ [aad04a25-b8bb-4304-888b-581bea8e0040 ]
16
+ description = " normalization results in empty plaintext"
17
+
8
18
[64131d65-6fd9-4f58-bdd8-4a2370fb481d ]
9
19
description = " Lowercase"
10
20
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ public void emptyPlaintextResultsInEmptyCiphertext() {
13
13
assertThat (cryptoSquare .getCiphertext ()).isEqualTo (expectedOutput );
14
14
}
15
15
16
+ @ Ignore ("Remove to run test" )
17
+ @ Test
18
+ public void normalizationResultsInEmptyCiphertext () {
19
+ CryptoSquare cryptoSquare = new CryptoSquare ("... --- ..." );
20
+ String expectedOutput = "" ;
21
+
22
+ assertThat (cryptoSquare .getCiphertext ()).isEqualTo (expectedOutput );
23
+ }
24
+
16
25
@ Ignore ("Remove to run test" )
17
26
@ Test
18
27
public void lettersAreLowerCasedDuringEncryption () {
@@ -62,7 +71,7 @@ public void eightCharacterPlaintextResultsInThreeChunksWithATrailingSpace() {
62
71
@ Test
63
72
public void fiftyFourCharacterPlaintextResultsInSevenChunksWithTrailingSpaces () {
64
73
CryptoSquare cryptoSquare = new CryptoSquare ("If man was meant to stay on the ground, god would have " +
65
- "given us roots." );
74
+ "given us roots." );
66
75
String expectedOutput = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau " ;
67
76
68
77
assertThat (cryptoSquare .getCiphertext ()).isEqualTo (expectedOutput );
You can’t perform that action at this time.
0 commit comments