Skip to content

Commit

Permalink
Fix test for Win32 line ending
Browse files Browse the repository at this point in the history
On Win32 the end of line is coded as "\r\n", need to match rule eol
instead of "\n".
  • Loading branch information
pauloscustodio committed Apr 6, 2016
1 parent 9b0fcba commit 2d7c400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit_tests/verify_file.hh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace pegtl
{
struct file_content : pegtl_string_t( "dummy content\n" ) {};
struct file_content : seq< pegtl_string_t( "dummy content" ), eol > {};
struct file_grammar : seq< rep_min_max< 11, 11, file_content >, eof > {};

template< typename Rule > struct file_action : nothing< Rule > {};
Expand Down

0 comments on commit 2d7c400

Please sign in to comment.