Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/stephenberry/glaze
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Mar 3, 2023
2 parents 7a21116 + 12acc02 commit 8365fec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/json_test/json_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,17 @@ suite early_end = [] {
};
};

suite prettified_custom_object = [] {
using namespace boost::ut;

"prettified_custom_object"_test = [] {
Thing obj{};
std::string buffer = glz::write_json(obj);
buffer = glz::prettify(buffer);
expect(glz::read_json(obj, buffer) == glz::error_code::none);
};
};

suite bench = [] {
using namespace boost::ut;
"bench"_test = [] {
Expand Down

0 comments on commit 8365fec

Please sign in to comment.