-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_task07.py
33 lines (28 loc) · 977 Bytes
/
test_task07.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import unittest
from task07 import increase_items_at_main_diag as s
class Task07(unittest.TestCase):
def test_shouldReturnExpectedResult(self):
self.assertEqual(s(2,
[
[1, 1],
[2, 1]
]), [
[2, 1],
[2, 2]
])
self.assertEqual(s(1,
[
[1],
]), [
[2],
])
self.assertEqual(s(3,
[
[3, 2, 4],
[1, 3, 5],
[1, 4, 3]
]), [
[4, 2, 4],
[1, 5, 5],
[1, 4, 6]
])