rename test01.txt to example01.txt
This commit is contained in:
parent
098e36e2d3
commit
150bf3e15b
32 changed files with 66 additions and 58 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue