Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows new-line breaks parser #47

Open
Lorac opened this issue Oct 15, 2021 · 0 comments
Open

Windows new-line breaks parser #47

Lorac opened this issue Oct 15, 2021 · 0 comments

Comments

@Lorac
Copy link

Lorac commented Oct 15, 2021

On windows I couldn't get a CMakeLists.txt to parse. I tried adding a test like this:

test_windows_newline = make_parser_test("a()\r\n", [("a", []), '\r', '\n'])

But it doesn't pass and returns no tokens.

    def test() -> None:
        actual_token, actual_remain = ListParser().parse(liststr)
>       assert actual_token == expect_token
E       AssertionError: assert [] == [('a', []), '\r', '\n']
E         Right contains 3 more items, first extra item: ('a', [])
E         Full diff:
E         - [('a', []), '\r', '\n']
E         + []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant