scuffed-code/icu4c/source/test/intltest/hajatrts.h
Ram Viswanadha 7f6d7e256f ICU-903 update copyright notices
X-SVN-Rev: 4235
2001-03-21 20:09:56 +00:00

67 lines
2.1 KiB
C++

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************
************************************************************************
* Date Name Description
* 03/20/2000 Madhu Creation.
************************************************************************/
#ifndef HANGTOJAMOTRTST_H
#define HANGTOJAMOTRTST_H
#include "unicode/utypes.h"
#include "unicode/translit.h"
#include "unicode/hangjamo.h"
#include "intltest.h"
class HangulJamoTransliterator;
/**
* @test
* @summary General test of HangulToJamo Transliterator
*/
class HangToJamoTransliteratorTest : public IntlTest {
public:
void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
/*Tests the constructors */
void TestConstruction(void);
/*Tests the function clone, and operator==()*/
void TestCloneEqual(void);
/*Tests the function handleTransliterate()*/
void TestSimpleTransliterate(void);
/*Tests the function handleTransliterate()*/
void TestTransliterate(void);
void TestTransliterate2(void);
//======================================================================
// Support methods
//======================================================================
void expectTranslit(const HangulJamoTransliterator& t,
const UnicodeString& message,
const UnicodeString& source,
int32_t start,
int32_t limit,
int32_t cursor,
const UnicodeString& expectedResult);
void expect(const HangulJamoTransliterator& t,
const UnicodeString& message,
const UnicodeString& source,
const UnicodeString& expectedResult);
void expectAux(const UnicodeString& tag,
const UnicodeString& summary, UBool pass,
const UnicodeString& expectedResult);
};
#endif