From f6d7ba774f5cd2b6670004d3278fb83decfb4353 Mon Sep 17 00:00:00 2001 From: Stuckinaboot Date: Sun, 21 Oct 2018 14:05:39 -0400 Subject: [PATCH] Add second test --- tests/example.py | 9 --------- tests/test_example.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) delete mode 100644 tests/example.py create mode 100644 tests/test_example.py diff --git a/tests/example.py b/tests/example.py deleted file mode 100644 index fa400684..00000000 --- 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 00000000..d61d9b67 --- /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