Skip to content

Commit 23fa9be

Browse files
Update exercises (#2417)
[no important files changed]
1 parent e0bdee9 commit 23fa9be

File tree

6 files changed

+39
-4
lines changed

6 files changed

+39
-4
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ description = "8 character plaintext results in 3 chunks, the last one with a tr
3232

3333
[fbcb0c6d-4c39-4a31-83f6-c473baa6af80]
3434
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/CryptoSquareTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ public void Fifty_four_character_plaintext_results_in_7_chunks_the_last_two_with
4747
{
4848
Assert.Equal("imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ", CryptoSquare.Ciphertext("If man was meant to stay on the ground, god would have given us roots."));
4949
}
50+
51+
[Fact(Skip = "Remove this Skip property to run this test")]
52+
public void Fifty_four_character_plaintext_results_in_8_chunks_the_last_two_with_trailing_spaces()
53+
{
54+
Assert.Equal("imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ", CryptoSquare.Ciphertext("If man was meant to stay on the ground, god would have given us roots."));
55+
}
5056
}

exercises/practice/game-of-life/GameOfLifeTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Xunit;
2-
31
public class GameOfLifeTests
42
{
53
[Fact]

exercises/practice/intergalactic-transmission/.meta/tests.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ description = "calculate transmit sequences -> eight byte message"
4242
[54a0642a-d5aa-490c-be89-8e171a0cab6f]
4343
description = "calculate transmit sequences -> twenty byte message"
4444

45+
[9a8084dd-3336-474c-90cb-8a852524604d]
46+
description = "decode received messages -> empty message"
47+
4548
[879af739-0094-4736-9127-bd441b1ddbbf]
4649
description = "decode received messages -> zero message"
4750

@@ -63,6 +66,9 @@ description = "decode received messages -> second byte has wrong parity"
6366
[b985692e-6338-46c7-8cea-bc38996d4dfd]
6467
description = "decode received messages -> 0xcf4b00 is decoded to 0xce94"
6568

69+
[7a1f4d48-696d-4679-917c-21b7da3ff3fd]
70+
description = "decode received messages -> 0xe2566500 is decoded to 0xe2ad90"
71+
6672
[467549dc-a558-443b-80c5-ff3d4eb305d4]
6773
description = "decode received messages -> six byte message"
6874

exercises/practice/largest-series-product/.meta/tests.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,25 @@ description = "reports zero if all spans include zero"
3838

3939
[5d81aaf7-4f67-4125-bf33-11493cc7eab7]
4040
description = "rejects span longer than string length"
41+
include = false
42+
43+
[0ae1ce53-d9ba-41bb-827f-2fceb64f058b]
44+
description = "rejects span longer than string length"
45+
reimplements = "5d81aaf7-4f67-4125-bf33-11493cc7eab7"
4146

4247
[06bc8b90-0c51-4c54-ac22-3ec3893a079e]
4348
description = "reports 1 for empty string and empty product (0 span)"
44-
include = false
4549

4650
[3ec0d92e-f2e2-4090-a380-70afee02f4c0]
4751
description = "reports 1 for nonempty string and empty product (0 span)"
48-
include = false
4952

5053
[6d96c691-4374-4404-80ee-2ea8f3613dd4]
5154
description = "rejects empty string and nonzero span"
55+
include = false
56+
57+
[6cf66098-a6af-4223-aab1-26aeeefc7402]
58+
description = "rejects empty string and nonzero span"
59+
reimplements = "6d96c691-4374-4404-80ee-2ea8f3613dd4"
5260

5361
[7a38f2d6-3c35-45f6-8d6f-12e6e32d4d74]
5462
description = "rejects invalid character in digits"

exercises/practice/largest-series-product/LargestSeriesProductTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ public void Rejects_span_longer_than_string_length()
6060
Assert.Throws<ArgumentException>(() => LargestSeriesProduct.GetLargestProduct("123", 4));
6161
}
6262

63+
[Fact(Skip = "Remove this Skip property to run this test")]
64+
public void Reports_1_for_empty_string_and_empty_product_0_span()
65+
{
66+
Assert.Equal(1, LargestSeriesProduct.GetLargestProduct("", 0));
67+
}
68+
69+
[Fact(Skip = "Remove this Skip property to run this test")]
70+
public void Reports_1_for_nonempty_string_and_empty_product_0_span()
71+
{
72+
Assert.Equal(1, LargestSeriesProduct.GetLargestProduct("123", 0));
73+
}
74+
6375
[Fact(Skip = "Remove this Skip property to run this test")]
6476
public void Rejects_empty_string_and_nonzero_span()
6577
{

0 commit comments

Comments
 (0)