Skip to content

Commit

Permalink
core: add parser for numeric comma separeted output
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelomachado committed Oct 3, 2024
1 parent 24b8a07 commit 4f3eb47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/core/tests/unit_tests/output_parsers/test_list_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def test_single_numeric_list_item() -> None:
assert parser.parse(text) == expected
assert add(parser.transform(t for t in text)) == expected
assert list(parser.transform(t for t in text)) == [[a] for a in expected]
assert list(parser.transform(t for t in text.splitlines(keepends=True))) == [ # noqa E501
assert list(parser.transform(t for t in text.splitlines(keepends=True))) == [ # noqa E501
[a] for a in expected
]
assert list(
parser.transform(" " + t if i > 0 else t for i, t in enumerate(text.split(" "))) # noqa E501
parser.transform(" " + t if i > 0 else t for i, t in enumerate(text.split(" "))) # noqa E501
) == [[a] for a in expected]
assert list(parser.transform(iter([text]))) == [[a] for a in expected]

Expand Down

0 comments on commit 4f3eb47

Please sign in to comment.