Skip to content

Commit b306c28

Browse files
authored
Update test.py
1 parent e9846b7 commit b306c28

File tree

1 file changed

+8
-9
lines changed
  • exercises/26-two-dimensional-array

1 file changed

+8
-9
lines changed
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
21
import pytest,os,re,io,sys, mock, json
32

4-
@pytest.mark.it('The function two_dimensional_array must exist')
3+
@pytest.mark.it('The function two_dimensional_list must exist')
54
def test_function_existence(capsys, app):
6-
assert app.two_dimensional_array
5+
assert app.two_dimensional_list
76

8-
@pytest.mark.it('The function should return the expected output.')
7+
@pytest.mark.it('The function should return the expected output')
98
def test_expected_output(capsys, app):
10-
assert app.two_dimensional_array(3,5) == [[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8]]
9+
assert app.two_dimensional_list(3,5) == [[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8]]
1110

12-
@pytest.mark.it('The function should work with other entries. Testing with 2,7')
11+
@pytest.mark.it('The function should work with other entries. Testing with 2, 7')
1312
def test_expected_output(capsys, app):
14-
assert app.two_dimensional_array(2,7) == [[0, 0, 0, 0, 0, 0, 0], [0, 1, 2, 3, 4, 5, 6]]
13+
assert app.two_dimensional_list(2,7) == [[0, 0, 0, 0, 0, 0, 0], [0, 1, 2, 3, 4, 5, 6]]
1514

16-
@pytest.mark.it('The function should work with other entries. Testing with 2,7')
15+
@pytest.mark.it('The function should work with other entries. Testing with 1, 10')
1716
def test_expected_output(capsys, app):
18-
assert app.two_dimensional_array(1,10) == [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
17+
assert app.two_dimensional_list(1,10) == [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]

0 commit comments

Comments
 (0)