2000-03-28 23:23:48 +00:00
|
|
|
/*
|
|
|
|
*****************************************************************************************
|
|
|
|
* *
|
|
|
|
* 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:
|
2000-05-18 22:08:39 +00:00
|
|
|
void runIndexedTest(int32_t index, UBool exec, char* &name, char* par=NULL);
|
2000-03-28 23:23:48 +00:00
|
|
|
|
|
|
|
/*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,
|
2000-05-18 22:08:39 +00:00
|
|
|
const UnicodeString& summary, UBool pass,
|
2000-03-28 23:23:48 +00:00
|
|
|
const UnicodeString& expectedResult);
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|