Add test folder

This commit is contained in:
Stuckinaboot 2018-10-21 14:02:32 -04:00
parent 0e7d8dd927
commit 80d1a89947
2 changed files with 9 additions and 0 deletions

0
tests/__init.py__ Normal file
View File

9
tests/example.py Normal file
View File

@ -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