From d5bc69e7f4b9508a5ee75a430459ebd121121bb4 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 28 Mar 2006 22:00:11 +0000 Subject: [PATCH] ICU-5032 Increase code coverage numbers X-SVN-Rev: 19466 --- icu4c/source/test/cintltst/udatatst.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icu4c/source/test/cintltst/udatatst.c b/icu4c/source/test/cintltst/udatatst.c index 4b800658cd5..f19566cfecd 100644 --- a/icu4c/source/test/cintltst/udatatst.c +++ b/icu4c/source/test/cintltst/udatatst.c @@ -1425,6 +1425,13 @@ TestSwapData() { } /* Test that printError works as expected. */ + errorCode=U_USELESS_COLLATOR_ERROR; + ds=udata_openSwapper(U_IS_BIG_ENDIAN, U_ASCII_FAMILY, + !U_IS_BIG_ENDIAN, U_ASCII_FAMILY, + &errorCode); + if (ds != NULL || errorCode != U_USELESS_COLLATOR_ERROR) { + log_err("udata_openSwapper should have returned NULL with bad argument\n", name); + } errorCode=U_ZERO_ERROR; ds=udata_openSwapper(U_IS_BIG_ENDIAN, U_ASCII_FAMILY, !U_IS_BIG_ENDIAN, U_ASCII_FAMILY,