mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add test folder
This commit is contained in:
0
tests/__init.py__
Normal file
0
tests/__init.py__
Normal file
9
tests/example.py
Normal file
9
tests/example.py
Normal 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
|
||||
Reference in New Issue
Block a user