Skip to content

Commit

Permalink
Fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Dec 9, 2024
1 parent 94786f2 commit 480c615
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/pegtl/internal_read_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ namespace TAO_PEGTL_NAMESPACE
TAO_PEGTL_TEST_ASSERT( data == "duseltronik" );
}
{
const std::unique_ptr< std::FILE, internal::read_file_close > file( internal::read_file_open( path ) );
const internal::read_input in( file.get(), path );
const internal::read_input in( internal::read_file_open( path ), path );
const std::string data( in.start(), in.end() );
TAO_PEGTL_TEST_ASSERT( data == "duseltronik" );
}
Expand Down

0 comments on commit 480c615

Please sign in to comment.