Skip to content

Commit

Permalink
print contents of unexpected parsed file
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Aug 20, 2024
1 parent f4ac20d commit 392204e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/samples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <tst/check.hpp>

#include <utki/util.hpp>
#include <utki/string.hpp>

#include <papki/fs_file.hpp>
#include <papki/vector_file.hpp>
Expand Down Expand Up @@ -92,7 +93,9 @@ const tst::set set("samples", [](tst::suite& suite){
failed_file.write(out_data);
failed_file.close();

tst::check(false, SL) << "parsed file is not as expected: " << in_file_name;
tst::check(false, SL) << "parsed file is not as expected: " << in_file_name << "\n"
<< "parsed file contents:" << "\n"
<< utki::make_string_view(out_data);
}
}
);
Expand Down

0 comments on commit 392204e

Please sign in to comment.