73 lines
2.5 KiB
C
73 lines
2.5 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 JAMOTOHANGTRTST_H
|
||
|
#define JAMOTOHANGTRTST_H
|
||
|
|
||
|
#include "unicode/utypes.h"
|
||
|
#include "unicode/translit.h"
|
||
|
#include "unicode/jamohang.h"
|
||
|
#include "intltest.h"
|
||
|
|
||
|
class JamoHangulTransliterator;
|
||
|
|
||
|
/**
|
||
|
* @test
|
||
|
* @summary General test of JamoToHangul Transliterator
|
||
|
*/
|
||
|
class JamoToHangTransliteratorTest : public IntlTest {
|
||
|
public:
|
||
|
void runIndexedTest(int32_t index, bool_t exec, 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 JamoHangulTransliterator& t,
|
||
|
const UnicodeString& message,
|
||
|
const UnicodeString& source,
|
||
|
int32_t start,
|
||
|
int32_t limit,
|
||
|
int32_t cursor,
|
||
|
const UnicodeString& expectedResult);
|
||
|
|
||
|
void expect(const JamoHangulTransliterator& t,
|
||
|
const UnicodeString& message,
|
||
|
const UnicodeString& source,
|
||
|
const UnicodeString& expectedResult);
|
||
|
|
||
|
void expectAux(const UnicodeString& tag,
|
||
|
const UnicodeString& summary, bool_t pass,
|
||
|
const UnicodeString& expectedResult);
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|
||
|
|
||
|
|