]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/trnserr.h
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / trnserr.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f
A
3/********************************************************************
4 * COPYRIGHT:
73c04bcf 5 * Copyright (c) 2001-2005, International Business Machines Corporation and
b75a7d8f
A
6 * others. All Rights Reserved.
7 ********************************************************************/
8/************************************************************************
9* This test program is intended for testing error conditions of the
10* transliterator APIs to make sure the exceptions are raised where
11* necessary.
12*
13* Date Name Description
14* 11/14/2001 hshih Creation.
15*
16************************************************************************/
17
18
19#ifndef TRNSERR_H
20#define TRNSERR_H
21
22#include "unicode/utypes.h"
23
24#if !UCONFIG_NO_TRANSLITERATION
25
26#include "unicode/translit.h"
27#include "intltest.h"
28
29/**
30 * @test
31 * @summary Error condition tests of Transliterator
32 */
33class TransliteratorErrorTest : public IntlTest {
34public:
35 void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
36
37 /*Tests the returned error codes on all the APIs according to the API documentation. */
38 void TestTransliteratorErrors(void);
39
40 void TestUnicodeSetErrors(void);
41
374ca955 42 //void TestUniToHexErrors(void);
b75a7d8f
A
43
44 void TestRBTErrors(void);
45
374ca955 46 //void TestHexToUniErrors(void);
b75a7d8f 47
73c04bcf
A
48 // JitterBug 4452, for coverage. The reason to put this method here is
49 // this class is comparable smaller than other Transliterator*Test classes
50 void TestCoverage(void);
51
b75a7d8f
A
52};
53
54#endif /* #if !UCONFIG_NO_TRANSLITERATION */
55
56#endif