Skip to content

Commit 7372624

Browse files
authored
Updating tests crypto-square (#2582)
1 parent b1e9fba commit 7372624

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
],
55
"contributors": [
66
"diego-caceres",
7+
"jagdish-15",
78
"ntshcalleia",
89
"rchavarria",
910
"ryanplusplus",

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
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.
411

512
[407c3837-9aa7-4111-ab63-ec54b58e8e9f]
613
description = "empty plaintext results in an empty ciphertext"
714

15+
[aad04a25-b8bb-4304-888b-581bea8e0040]
16+
description = "normalization results in empty plaintext"
17+
818
[64131d65-6fd9-4f58-bdd8-4a2370fb481d]
919
description = "Lowercase"
1020

exercises/practice/crypto-square/crypto-square.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ describe('Crypto', () => {
77
expect(crypto.ciphertext).toEqual('');
88
});
99

10+
test('normalization results in empty plaintext', () => {
11+
const crypto = new Crypto('... --- ...');
12+
expect(crypto.ciphertext).toEqual('');
13+
});
14+
1015
xtest('Lowercase', () => {
1116
const crypto = new Crypto('A');
1217
expect(crypto.ciphertext).toEqual('a');

0 commit comments

Comments
 (0)