Add second test

This commit is contained in:
Stuckinaboot 2018-10-21 14:05:39 -04:00
parent 4c4f82361b
commit f6d7ba774f
2 changed files with 17 additions and 9 deletions

View File

@ -1,9 +0,0 @@
import pytest
@pytest.mark.parametrize("test_input,expected", [
("3+5", 8),
("2+4", 6),
("6*9", 42),
])
def test_eval(test_input, expected):
assert eval(test_input) == expected

17
tests/test_example.py Normal file
View File

@ -0,0 +1,17 @@
import pytest
@pytest.mark.parametrize("test_input,expected", [
("3+5", 8),
("2+4", 6),
("6*9", 42),
])
def test_eval(test_input, expected):
assert eval(test_input) == expected
@pytest.mark.parametrize("test_input,expected", [
("3+5", 8),
("2+4", 6),
("6*5", 30),
])
def test_eval2(test_input, expected):
assert eval(test_input) == expected