|
1 | 1 | # These tests are auto-generated with test data from:
|
2 | 2 | # https://github.com/exercism/problem-specifications/tree/main/exercises/flatten-array/canonical-data.json
|
3 |
| -# File last updated on 2023-07-19 |
| 3 | +# File last updated on 2025-03-22 |
4 | 4 |
|
5 | 5 | import unittest
|
6 | 6 |
|
@@ -45,26 +45,26 @@ def test_null_values_are_omitted_from_the_final_result(self):
|
45 | 45 | expected = [1, 2]
|
46 | 46 | self.assertEqual(flatten(inputs), expected)
|
47 | 47 |
|
48 |
| - def test_consecutive_null_values_at_the_front_of_the_list_are_omitted_from_the_final_result( |
| 48 | + def test_consecutive_null_values_at_the_front_of_the_array_are_omitted_from_the_final_result( |
49 | 49 | self,
|
50 | 50 | ):
|
51 | 51 | inputs = [None, None, 3]
|
52 | 52 | expected = [3]
|
53 | 53 | self.assertEqual(flatten(inputs), expected)
|
54 | 54 |
|
55 |
| - def test_consecutive_null_values_in_the_middle_of_the_list_are_omitted_from_the_final_result( |
| 55 | + def test_consecutive_null_values_in_the_middle_of_the_array_are_omitted_from_the_final_result( |
56 | 56 | self,
|
57 | 57 | ):
|
58 | 58 | inputs = [1, None, None, 4]
|
59 | 59 | expected = [1, 4]
|
60 | 60 | self.assertEqual(flatten(inputs), expected)
|
61 | 61 |
|
62 |
| - def test_6_level_nest_list_with_null_values(self): |
| 62 | + def test_6_level_nested_array_with_null_values(self): |
63 | 63 | inputs = [0, 2, [[2, 3], 8, [[100]], None, [[None]]], -2]
|
64 | 64 | expected = [0, 2, 2, 3, 8, 100, -2]
|
65 | 65 | self.assertEqual(flatten(inputs), expected)
|
66 | 66 |
|
67 |
| - def test_all_values_in_nested_list_are_null(self): |
| 67 | + def test_all_values_in_nested_array_are_null(self): |
68 | 68 | inputs = [None, [[[None]]], None, None, [[None, None], None], None]
|
69 | 69 | expected = []
|
70 | 70 | self.assertEqual(flatten(inputs), expected)
|
0 commit comments