Browse Source

Test scripts pass in release builds too

pull/645/head
David Hotham 11 years ago
parent
commit
84f313115f
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      cpp/test/phonenumbers/shortnumberinfo_test.cc

+ 4
- 2
cpp/test/phonenumbers/shortnumberinfo_test.cc View File

@ -36,8 +36,10 @@ class ShortNumberInfoTest : public testing::Test {
PhoneNumber ParseNumberForTesting(const string& number,
const string& region_code) {
PhoneNumber phone_number;
CHECK_EQ(phone_util_.Parse(number, region_code, &phone_number),
PhoneNumberUtil::NO_PARSING_ERROR);
PhoneNumberUtil::ErrorType error_type = phone_util_.Parse(
number, region_code, &phone_number);
CHECK_EQ(error_type, PhoneNumberUtil::NO_PARSING_ERROR);
IGNORE_UNUSED(error_type);
return phone_number;
}


Loading…
Cancel
Save