@@ -141,18 +141,23 @@ TEST_P(TolerantEncodingChecks, EncodeDegrees) {
141
141
// Encode the test location and make sure we get the expected code.
142
142
OLC_Encode (&loc, tc.length , got_code, 18 );
143
143
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 ());
146
147
}
147
148
}
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 ();
149
151
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 ;
151
154
}
152
155
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).
154
158
INSTANTIATE_TEST_SUITE_P (OLC_Tests, TolerantEncodingChecks,
155
- ::testing::Values (TolerantTestParams{0.05 , GetEncodingDataFromCsv ()}));
159
+ ::testing::Values (TolerantTestParams{
160
+ 0.05 , GetEncodingDataFromCsv ()}));
156
161
157
162
class EncodingChecks : public ::testing::TestWithParam<EncodingTestData> {};
158
163
0 commit comments