rename test01.txt to example01.txt

This commit is contained in:
Ruediger Ludwig 2022-12-18 14:27:13 +01:00
parent 098e36e2d3
commit 150bf3e15b
32 changed files with 66 additions and 58 deletions

View file

@ -73,6 +73,14 @@ def test_between():
assert result == expected
def test_sep_by_single():
parser = P.signed().sep_by(P.char(','))
input = '2'
expected = [[2]]
result = list(parser.parse_multi(input))
assert result == expected
def test_sep_by():
parser = P.signed().sep_by(P.char(','))
input = '2,3,5'