Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Dec 9, 2024
1 parent 241560e commit 6a8d805
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions test/test_json_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,18 @@ TEST_CASE("test instruments.json") {
}

struct test_optstr_reader_null {
std::optional<std::string> name;
std::optional<std::string> name;
};
YLT_REFL(test_optstr_reader_null, name);
TEST_CASE("test_optstr_reader") {

test_optstr_reader_null v;
v.name = "name"; // optional<string> begin with 'n'
std::string json;
iguana::to_json(v, json);

test_optstr_reader_null v1;
iguana::from_json(v1, json);
CHECK(v.name == v1.name);
test_optstr_reader_null v;
v.name = "name"; // optional<string> begin with 'n'
std::string json;
iguana::to_json(v, json);

test_optstr_reader_null v1;
iguana::from_json(v1, json);
CHECK(v.name == v1.name);
}

// doctest comments
Expand Down

0 comments on commit 6a8d805

Please sign in to comment.