Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions exercises/practice/crypto-square/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions exercises/practice/crypto-square/CryptoSquareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ public void Fifty_four_character_plaintext_results_in_7_chunks_the_last_two_with
{
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."));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Fifty_four_character_plaintext_results_in_8_chunks_the_last_two_with_trailing_spaces()
{
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."));
}
}
2 changes: 0 additions & 2 deletions exercises/practice/game-of-life/GameOfLifeTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Xunit;

public class GameOfLifeTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ description = "calculate transmit sequences -> eight byte message"
[54a0642a-d5aa-490c-be89-8e171a0cab6f]
description = "calculate transmit sequences -> twenty byte message"

[9a8084dd-3336-474c-90cb-8a852524604d]
description = "decode received messages -> empty message"

[879af739-0094-4736-9127-bd441b1ddbbf]
description = "decode received messages -> zero message"

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

[7a1f4d48-696d-4679-917c-21b7da3ff3fd]
description = "decode received messages -> 0xe2566500 is decoded to 0xe2ad90"

[467549dc-a558-443b-80c5-ff3d4eb305d4]
description = "decode received messages -> six byte message"

Expand Down
12 changes: 10 additions & 2 deletions exercises/practice/largest-series-product/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,25 @@ description = "reports zero if all spans include zero"

[5d81aaf7-4f67-4125-bf33-11493cc7eab7]
description = "rejects span longer than string length"
include = false

[0ae1ce53-d9ba-41bb-827f-2fceb64f058b]
description = "rejects span longer than string length"
reimplements = "5d81aaf7-4f67-4125-bf33-11493cc7eab7"

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

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

[6d96c691-4374-4404-80ee-2ea8f3613dd4]
description = "rejects empty string and nonzero span"
include = false

[6cf66098-a6af-4223-aab1-26aeeefc7402]
description = "rejects empty string and nonzero span"
reimplements = "6d96c691-4374-4404-80ee-2ea8f3613dd4"

[7a38f2d6-3c35-45f6-8d6f-12e6e32d4d74]
description = "rejects invalid character in digits"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ public void Rejects_span_longer_than_string_length()
Assert.Throws<ArgumentException>(() => LargestSeriesProduct.GetLargestProduct("123", 4));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Reports_1_for_empty_string_and_empty_product_0_span()
{
Assert.Equal(1, LargestSeriesProduct.GetLargestProduct("", 0));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Reports_1_for_nonempty_string_and_empty_product_0_span()
{
Assert.Equal(1, LargestSeriesProduct.GetLargestProduct("123", 0));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Rejects_empty_string_and_nonzero_span()
{
Expand Down
Loading