Skip to content

Commit 3506d50

Browse files
authored
fix c formatting (#726)
1 parent 97f6e9d commit 3506d50

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

c/openlocationcode_test.cc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,23 @@ TEST_P(TolerantEncodingChecks, EncodeDegrees) {
141141
// Encode the test location and make sure we get the expected code.
142142
OLC_Encode(&loc, tc.length, got_code, 18);
143143
if (tc.code.compare(got_code) != 0) {
144-
failure_count ++;
145-
printf(" ENCODING FAILURE: Got: '%s', expected: '%s'\n", got_code, tc.code.c_str());
144+
failure_count++;
145+
printf(" ENCODING FAILURE: Got: '%s', expected: '%s'\n", got_code,
146+
tc.code.c_str());
146147
}
147148
}
148-
double actual_failure_rate = double(failure_count) / test_params.test_data.size();
149+
double actual_failure_rate =
150+
double(failure_count) / test_params.test_data.size();
149151
EXPECT_LE(actual_failure_rate, test_params.allowed_failure_rate)
150-
<< "Failure rate " << actual_failure_rate << " exceeds allowed rate " << test_params.allowed_failure_rate;
152+
<< "Failure rate " << actual_failure_rate << " exceeds allowed rate "
153+
<< test_params.allowed_failure_rate;
151154
}
152155

153-
// Allow a 5% error rate encoding from degree coordinates (because of floating point precision).
156+
// Allow a 5% error rate encoding from degree coordinates (because of floating
157+
// point precision).
154158
INSTANTIATE_TEST_SUITE_P(OLC_Tests, TolerantEncodingChecks,
155-
::testing::Values(TolerantTestParams{0.05, GetEncodingDataFromCsv()}));
159+
::testing::Values(TolerantTestParams{
160+
0.05, GetEncodingDataFromCsv()}));
156161

157162
class EncodingChecks : public ::testing::TestWithParam<EncodingTestData> {};
158163

0 commit comments

Comments
 (0)