-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_task06.py
35 lines (30 loc) · 1.02 KB
/
test_task06.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
34
35
import unittest
from task06 import swap_min_max_cols as s
class Task06(unittest.TestCase):
def test_shouldReturnExpectedResult(self):
self.assertEqual(s(2, 1,
[
[1],
[2]
]), [
[1],
[2]
])
self.assertEqual(s(4, 3,
[
[1, 1, 2],
[1, 1, 1],
[1, 1, 1],
[1, 1, 1],
]), [
[2, 1, 1],
[1, 1, 1],
[1, 1, 1],
[1, 1, 1]
])
self.assertEqual(s(1, 1,
[
[1]
]), [
[1]
])