2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2001-11-16 23:31:46 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 2001-2005, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2001-11-16 23:31:46 +00:00
|
|
|
********************************************************************/
|
|
|
|
/************************************************************************
|
|
|
|
* This test program is intended for testing error conditions of the
|
|
|
|
* transliterator APIs to make sure the exceptions are raised where
|
|
|
|
* necessary.
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 11/14/2001 hshih Creation.
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TRNSERR_H
|
|
|
|
#define TRNSERR_H
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_TRANSLITERATION
|
|
|
|
|
2001-11-16 23:31:46 +00:00
|
|
|
#include "unicode/translit.h"
|
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @test
|
|
|
|
* @summary Error condition tests of Transliterator
|
|
|
|
*/
|
|
|
|
class TransliteratorErrorTest : public IntlTest {
|
|
|
|
public:
|
|
|
|
void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
|
|
|
|
|
|
|
|
/*Tests the returned error codes on all the APIs according to the API documentation. */
|
|
|
|
void TestTransliteratorErrors(void);
|
|
|
|
|
|
|
|
void TestUnicodeSetErrors(void);
|
|
|
|
|
2004-02-25 23:03:03 +00:00
|
|
|
//void TestUniToHexErrors(void);
|
2001-11-16 23:31:46 +00:00
|
|
|
|
|
|
|
void TestRBTErrors(void);
|
|
|
|
|
2004-02-25 23:03:03 +00:00
|
|
|
//void TestHexToUniErrors(void);
|
2001-11-16 23:31:46 +00:00
|
|
|
|
2005-07-14 23:24:38 +00:00
|
|
|
// JitterBug 4452, for coverage. The reason to put this method here is
|
|
|
|
// this class is comparable smaller than other Transliterator*Test classes
|
|
|
|
void TestCoverage(void);
|
|
|
|
|
2001-11-16 23:31:46 +00:00
|
|
|
};
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
|
2001-11-16 23:31:46 +00:00
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#endif
|