py-libp2p/tests/example.py

9 lines
193 B
Python
Raw Normal View History

2018-10-22 02:02:32 +08:00
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