Skip to content

Commit 37fd81d

Browse files
authored
Sync crypto-square tests (#1627)
* Only first test should be run by default * Sync `crypto-square` tests
1 parent e8250ab commit 37fd81d

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

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

Lines changed: 18 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

@@ -22,3 +32,8 @@ description = "8 character plaintext results in 3 chunks, the last one with a tr
2232

2333
[fbcb0c6d-4c39-4a31-83f6-c473baa6af80]
2434
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/crypto-square.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,22 @@ describe('Crypto', () => {
77
expect(crypto.ciphertext).toEqual('')
88
})
99

10-
it('Lowercase', () => {
10+
xit('normalization results in empty plaintext', () => {
11+
const crypto = new Crypto('... --- ...')
12+
expect(crypto.ciphertext).toEqual('')
13+
})
14+
15+
xit('Lowercase', () => {
1116
const crypto = new Crypto('A')
1217
expect(crypto.ciphertext).toEqual('a')
1318
})
1419

15-
it('Remove spaces', () => {
20+
xit('Remove spaces', () => {
1621
const crypto = new Crypto(' b ')
1722
expect(crypto.ciphertext).toEqual('b')
1823
})
1924

20-
it('Remove punctuation', () => {
25+
xit('Remove punctuation', () => {
2126
const crypto = new Crypto('@1,%!')
2227
expect(crypto.ciphertext).toEqual('1')
2328
})
@@ -32,7 +37,7 @@ describe('Crypto', () => {
3237
expect(crypto.ciphertext).toEqual('clu hlt io ')
3338
})
3439

35-
it.skip('54 character plaintext results in 7 chunks, the last two with trailing spaces', () => {
40+
it.skip('54 character plaintext results in 8 chunks, the last two with trailing spaces', () => {
3641
const crypto = new Crypto(
3742
'If man was meant to stay on the ground, god would have given us roots.'
3843
)

0 commit comments

Comments
 (0)