scuffed-code/icu4c/source/test/intltest/hajatrts.h
George Rhoten 2dbb8812ba ICU-535 fixed some compiler warnings
X-SVN-Rev: 2226
2000-08-14 21:42:36 +00:00

72 lines
2.7 KiB
C++

/*
*****************************************************************************************
* *
* COPYRIGHT: *
* (C) Copyright International Business Machines Corporation, 2000 *
* Licensed Material - Program-Property of IBM - All Rights Reserved. *
* US Government Users Restricted Rights - Use, duplication, or disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
* *
*****************************************************************************************
************************************************************************
* 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