|
1 |
| - |
2 | 1 | import pytest,os,re,io,sys, mock, json
|
3 | 2 |
|
4 |
| -@pytest.mark.it('The function two_dimensional_array must exist') |
| 3 | +@pytest.mark.it('The function two_dimensional_list must exist') |
5 | 4 | def test_function_existence(capsys, app):
|
6 |
| - assert app.two_dimensional_array |
| 5 | + assert app.two_dimensional_list |
7 | 6 |
|
8 |
| -@pytest.mark.it('The function should return the expected output.') |
| 7 | +@pytest.mark.it('The function should return the expected output') |
9 | 8 | 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]] |
11 | 10 |
|
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') |
13 | 12 | 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]] |
15 | 14 |
|
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') |
17 | 16 | 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