X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/test/intltest/testidna.cpp?ds=sidebyside diff --git a/icuSources/test/intltest/testidna.cpp b/icuSources/test/intltest/testidna.cpp index 617d9603..c24dbe60 100644 --- a/icuSources/test/intltest/testidna.cpp +++ b/icuSources/test/intltest/testidna.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * - * Copyright (C) 2003-2011, International Business Machines + * Copyright (C) 2003-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -1524,6 +1524,15 @@ void TestIDNA::TestCompareReferenceImpl(){ UChar src [2] = {0,0}; int32_t srcLen = 0; + // data even OK? + { + UErrorCode dataStatus = U_ZERO_ERROR; + loadTestData(dataStatus); + if(U_FAILURE(dataStatus)) { + dataerrln("Couldn't load test data: %s\n", u_errorName(dataStatus)); // save us from thousands and thousands of errors + return; + } + } for (int32_t i = 0; i <= 0x10FFFF; i++){ if (quick == TRUE && i > 0x0FFF){