Skip to content

Commit

Permalink
Bump bazel and c testing (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent authored Jan 8, 2025
1 parent c92c6f3 commit 4b5d02f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions c/openlocationcode_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ TEST_P(DecodingChecks, Decode) {
EXPECT_NEAR(expected_center.lon, got_center.lon, 1e-10);
}

INSTANTIATE_TEST_CASE_P(OLC_Tests, DecodingChecks,
::testing::ValuesIn(GetDecodingDataFromCsv()));
INSTANTIATE_TEST_SUITE_P(OLC_Tests, DecodingChecks,
::testing::ValuesIn(GetDecodingDataFromCsv()));

struct EncodingTestData {
double lat_deg;
Expand Down Expand Up @@ -131,8 +131,8 @@ TEST_P(EncodingChecks, Encode) {
EXPECT_EQ(test_data.code, got_code);
}

INSTANTIATE_TEST_CASE_P(OLC_Tests, EncodingChecks,
::testing::ValuesIn(GetEncodingDataFromCsv()));
INSTANTIATE_TEST_SUITE_P(OLC_Tests, EncodingChecks,
::testing::ValuesIn(GetEncodingDataFromCsv()));

struct ValidityTestData {
std::string code;
Expand Down Expand Up @@ -167,8 +167,8 @@ TEST_P(ValidityChecks, Validity) {
EXPECT_EQ(test_data.is_short, OLC_IsShort(test_data.code.c_str(), 0));
}

INSTANTIATE_TEST_CASE_P(OLC_Tests, ValidityChecks,
::testing::ValuesIn(GetValidityDataFromCsv()));
INSTANTIATE_TEST_SUITE_P(OLC_Tests, ValidityChecks,
::testing::ValuesIn(GetValidityDataFromCsv()));

struct ShortCodeTestData {
std::string full_code;
Expand Down Expand Up @@ -216,8 +216,8 @@ TEST_P(ShortCodeChecks, ShortCode) {
}
}

INSTANTIATE_TEST_CASE_P(OLC_Tests, ShortCodeChecks,
::testing::ValuesIn(GetShortCodeDataFromCsv()));
INSTANTIATE_TEST_SUITE_P(OLC_Tests, ShortCodeChecks,
::testing::ValuesIn(GetShortCodeDataFromCsv()));

TEST(MaxCodeLengthChecks, MaxCodeLength) {
std::string long_code = "8FVC9G8F+6W23456";
Expand Down

0 comments on commit 4b5d02f

Please sign in to comment.