Skip to content

Unit test for testing single comment generated by CommentParser class pass in linux and fail in windows  #184

@moh-hassan

Description

@moh-hassan

For the comment ended by \r\n in windows:

//This is a line comment\r\n      

in Linux, ended by \n

//This is a line comment\n      

The parser capture:
In linux: This is a line comment
In Windows: This is a line comment\r

That is because the line:

from rest in Parse.CharExcept(NewLine).Many().Text()    //NewLine= "\n"

It's best to handle NeLine in CommentParser class for Linux/Windows Environment at Runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions