Skip to content

Commit 720e811

Browse files
committed
introduce test cases that fail with my orig. soln
1 parent 8c73480 commit 720e811

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Python/chapter01/1.8 - Zero Matrix/miguel_1.8_sol.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,48 @@ def setUp(self):
124124
[1, 2],
125125
[3, 4]
126126
]
127+
),
128+
(
129+
[
130+
[0, 1, 2],
131+
[0, 3, 4],
132+
[0, 5, 6],
133+
[0, 7, 8]
134+
],
135+
[
136+
[0, 0, 0],
137+
[0, 0, 0],
138+
[0, 0, 0],
139+
[0, 0, 0]
140+
]
141+
),
142+
(
143+
[
144+
[1, 2, 3, 4],
145+
[5, 6, 0, 8],
146+
[9, 10, 0, 12],
147+
[13, 14, 15, 16]
148+
],
149+
[
150+
[1, 2, 0, 4],
151+
[0, 0, 0, 0],
152+
[0, 0, 0, 0],
153+
[13, 14, 0, 16]
154+
]
155+
),
156+
(
157+
[
158+
[0, 0, 0, 0],
159+
[1, 2, 3, 4],
160+
[5, 6, 7, 8],
161+
[9, 10, 11, 12]
162+
],
163+
[
164+
[0, 0, 0, 0],
165+
[0, 0, 0, 0],
166+
[0, 0, 0, 0],
167+
[0, 0, 0, 0]
168+
]
127169
)
128170
]
129171

0 commit comments

Comments
 (0)