Skip to content

Commit

Permalink
Temporary debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Nov 18, 2024
1 parent efeaa7c commit aec3572
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/pegtl/buffer_cstream_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <clocale>
#include <cstdio>
#include <iostream>

#include "test.hpp"

Expand All @@ -27,6 +28,10 @@ namespace TAO_PEGTL_NAMESPACE
std::FILE* stream = internal::read_file_open( filename );
TAO_PEGTL_TEST_ASSERT( stream != nullptr );
const std::string content = internal::read_file_stdio( stream, filename ).read_string(); // Closes stream unless c'tor throws while copying filename -- not a problem here.
std::cerr << content.size()
<< "<<< BEGIN <<<" << std::endl
<< content
<< ">>> END >>>" << std::endl;
TAO_PEGTL_TEST_ASSERT( content.size() == 154 );
}
{
Expand Down

0 comments on commit aec3572

Please sign in to comment.