ICU-5032 Increase code coverage. Bad input should fail and not succeed.

X-SVN-Rev: 19468
This commit is contained in:
George Rhoten 2006-03-29 00:19:41 +00:00
parent 7aa9c4c444
commit dbe243b118

View file

@ -1,7 +1,7 @@
/*
*******************************************************************************
*
* Copyright (C) 2002-2004, International Business Machines
* Copyright (C) 2002-2006, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@ -48,6 +48,8 @@ noopCurrent(UCharIterator * /*iter*/) {
return U_SENTINEL;
}
#if 0
/* Setting/Getting the state on illegal input isn't allowed. */
static uint32_t U_CALLCONV
noopGetState(const UCharIterator * /*iter*/) {
return 0;
@ -56,6 +58,7 @@ noopGetState(const UCharIterator * /*iter*/) {
static void U_CALLCONV
noopSetState(UCharIterator * /*iter*/, uint32_t /*state*/, UErrorCode * /*pErrorCode*/) {
}
#endif
static const UCharIterator noopIterator={
0, 0, 0, 0, 0, 0,
@ -67,8 +70,8 @@ static const UCharIterator noopIterator={
noopCurrent,
noopCurrent,
NULL,
noopGetState,
noopSetState
NULL,
NULL
};
/* UCharIterator implementation for simple strings -------------------------- */