Skip to content

Commit 767d6e3

Browse files
committed
Update flatten-array tests
1 parent cf22766 commit 767d6e3

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

exercises/practice/flatten-array/.meta/tests.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,32 @@ description = "null values are omitted from the final result"
3232

3333
[c6cf26de-8ccd-4410-84bd-b9efd88fd2bc]
3434
description = "consecutive null values at the front of the list are omitted from the final result"
35+
include = false
36+
37+
[bc72da10-5f55-4ada-baf3-50e4da02ec8e]
38+
description = "consecutive null values at the front of the array are omitted from the final result"
39+
reimplements = "c6cf26de-8ccd-4410-84bd-b9efd88fd2bc"
3540

3641
[382c5242-587e-4577-b8ce-a5fb51e385a1]
3742
description = "consecutive null values in the middle of the list are omitted from the final result"
43+
include = false
44+
45+
[6991836d-0d9b-4703-80a0-3f1f23eb5981]
46+
description = "consecutive null values in the middle of the array are omitted from the final result"
47+
reimplements = "382c5242-587e-4577-b8ce-a5fb51e385a1"
3848

3949
[ef1d4790-1b1e-4939-a179-51ace0829dbd]
4050
description = "6 level nest list with null values"
51+
include = false
52+
53+
[dc90a09c-5376-449c-a7b3-c2d20d540069]
54+
description = "6 level nested array with null values"
55+
reimplements = "ef1d4790-1b1e-4939-a179-51ace0829dbd"
4156

4257
[85721643-705a-4150-93ab-7ae398e2942d]
4358
description = "all values in nested list are null"
59+
include = false
60+
61+
[51f5d9af-8f7f-4fb5-a156-69e8282cb275]
62+
description = "all values in nested array are null"
63+
reimplements = "85721643-705a-4150-93ab-7ae398e2942d"

exercises/practice/flatten-array/FlattenArrayTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,31 @@ public void Null_values_are_omitted_from_the_final_result()
5656
}
5757

5858
[Fact(Skip = "Remove this Skip property to run this test")]
59-
public void Consecutive_null_values_at_the_front_of_the_list_are_omitted_from_the_final_result()
59+
public void Consecutive_null_values_at_the_front_of_the_array_are_omitted_from_the_final_result()
6060
{
6161
object?[] array = new object?[] { null, null, 3 };
6262
object?[] expected = [3];
6363
Assert.Equal(expected, FlattenArray.Flatten(array));
6464
}
6565

6666
[Fact(Skip = "Remove this Skip property to run this test")]
67-
public void Consecutive_null_values_in_the_middle_of_the_list_are_omitted_from_the_final_result()
67+
public void Consecutive_null_values_in_the_middle_of_the_array_are_omitted_from_the_final_result()
6868
{
6969
object?[] array = new object?[] { 1, null, null, 4 };
7070
object?[] expected = [1, 4];
7171
Assert.Equal(expected, FlattenArray.Flatten(array));
7272
}
7373

7474
[Fact(Skip = "Remove this Skip property to run this test")]
75-
public void Six_level_nest_list_with_null_values()
75+
public void Six_level_nested_array_with_null_values()
7676
{
7777
object?[] array = new object?[] { 0, 2, new object?[] { new object?[] { 2, 3 }, 8, new object?[] { new object?[] { 100 } }, null, new object?[] { new object?[] { null } } }, -2 };
7878
object?[] expected = [0, 2, 2, 3, 8, 100, -2];
7979
Assert.Equal(expected, FlattenArray.Flatten(array));
8080
}
8181

8282
[Fact(Skip = "Remove this Skip property to run this test")]
83-
public void All_values_in_nested_list_are_null()
83+
public void All_values_in_nested_array_are_null()
8484
{
8585
object?[] array = new object?[] { null, new object?[] { new object?[] { new object?[] { null } } }, null, null, new object?[] { new object?[] { null, null }, null }, null };
8686
object?[] expected = [];

0 commit comments

Comments
 (0)