Skip to content

Commit

Permalink
Update toml_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Feb 11, 2025
1 parent 24768b1 commit 5df2784
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/toml_test/toml_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ struct optional_struct {

suite starter = [] {

// Original test for a reflectable object.
"example"_test = [] {
my_struct s{};
std::string buffer{};
Expand All @@ -39,7 +38,6 @@ hello = "Hello World"
arr = [1, 2, 3])");
};

// Test writing a simple scalar value.
"scalar_int"_test = [] {
int i = 42;
std::string buffer{};
Expand All @@ -59,7 +57,8 @@ arr = [1, 2, 3])");
std::string buffer{};
expect(not glz::write_toml(m, buffer));
// std::map orders keys lexicographically, so we expect:
expect(buffer == "a = 1\nb = 2");
expect(buffer == R"(a = 1
b = 2)");
};

"tuple_test"_test = [] {
Expand Down

0 comments on commit 5df2784

Please sign in to comment.