diff --git a/tests/example.py b/tests/example.py deleted file mode 100644 index fa40068..0000000 --- a/tests/example.py +++ /dev/null @@ -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 \ No newline at end of file diff --git a/tests/test_example.py b/tests/test_example.py new file mode 100644 index 0000000..d61d9b6 --- /dev/null +++ b/tests/test_example.py @@ -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