Skip to content

Commit

Permalink
Add unit test for changeset bounding box
Browse files Browse the repository at this point in the history
  • Loading branch information
mmd-osm committed Apr 7, 2024
1 parent eab2405 commit 18150e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_apidb_backend_changesets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_changeset", "[changeset][db]" ) {
"VALUES "
" (1, 'user_1@example.com', '', '2013-11-14T02:10:00Z', 'user_1', true); "

"INSERT INTO changesets (id, user_id, created_at, closed_at, num_changes) "
"INSERT INTO changesets (id, user_id, min_lat, max_lat, min_lon, max_lon, created_at, closed_at, num_changes) "
"VALUES "
" (1, 1, '2013-11-14T02:10:00Z', '2013-11-14T03:10:00Z', 2);"
" (1, 1, 387436644, 535639226, -91658156, 190970588, '2013-11-14T02:10:00Z', '2013-11-14T03:10:00Z', 2);"
);
}

Expand All @@ -156,7 +156,7 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_changeset", "[changeset][db]" ) {
"2013-11-14T03:10:00Z", // closed_at
1, // uid
std::string("user_1"), // display_name
{}, // bounding box
bbox{38.7436644, -9.1658156, 53.5639226, 19.0970588}, // bounding box
2, // num_changes
0 // comments_count
),
Expand Down

0 comments on commit 18150e6

Please sign in to comment.