Skip to content

Commit

Permalink
pegasus_geo_test
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Nov 21, 2023
1 parent 4fba6a9 commit 6b56fcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/geo/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set(MY_PROJ_LIBS
absl::flat_hash_set
absl::strings
pegasus_geo_lib
s2testing
s2
pegasus_client_static
dsn_utils
Expand Down
3 changes: 2 additions & 1 deletion src/geo/test/geo_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <s2/s2cell_id.h>
#include <s2/s2earth.h>
#include <s2/s2latlng.h>
#include <s2/s2testing.h>
#include <stdint.h>
#include <list>
#include <memory>
Expand Down Expand Up @@ -582,7 +583,7 @@ TEST_F(geo_client_test, large_cap)
S2Cap cap;
gen_search_cap(S2LatLng::FromDegrees(lat_degrees, lng_degrees), radius_m, cap);
for (int i = 0; i < test_data_count; ++i) {
S2LatLng latlng;//(S2Testing::SamplePoint(cap));
S2LatLng latlng(S2Testing::SamplePoint(cap));
ASSERT_TRUE(cap.Contains(latlng.ToPoint()));
std::string id = std::to_string(i);
std::string value = id + "|2018-06-05 12:00:00|2018-06-05 13:00:00|abcdefg|" +
Expand Down

0 comments on commit 6b56fcf

Please sign in to comment.