Skip to content

Commit

Permalink
Update src/alfalfa/test/AlfalfaJSON_GTest.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Marrec <[email protected]>
  • Loading branch information
TShapinsky and jmarrec authored Nov 8, 2024
1 parent 25e61d0 commit 175fd88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/alfalfa/test/AlfalfaJSON_GTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ TEST(AlfalfaJSON, json_serialization) {
const bool parsing_success = Json::parseFromStream(r_builder, ifs, &root, &formatted_errors);
EXPECT_TRUE(parsing_success);
EXPECT_EQ(alfalfa.toJSON(), root);
int i = 0;
for (const auto& point : alfalfa.points()) {
for (Json::ArrayIndex i = 0; const auto& point : alfalfa.points()) {
EXPECT_EQ(root[i++], point.toJSON());
}
}
Expand Down

0 comments on commit 175fd88

Please sign in to comment.