From 80d1a89947a04349a892c00731cafab677c61c53 Mon Sep 17 00:00:00 2001 From: Stuckinaboot Date: Sun, 21 Oct 2018 14:02:32 -0400 Subject: [PATCH] Add test folder --- tests/__init.py__ | 0 tests/example.py | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/__init.py__ create mode 100644 tests/example.py diff --git a/tests/__init.py__ b/tests/__init.py__ new file mode 100644 index 00000000..e69de29b diff --git a/tests/example.py b/tests/example.py new file mode 100644 index 00000000..fa400684 --- /dev/null +++ b/tests/example.py @@ -0,0 +1,9 @@ +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