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-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
|
2000-03-28 23:23:48 +00:00
|
|
|
|
|
|
|
/*Tests the constructors */
|
|
|
|
void TestConstruction(void);
|
2000-08-14 21:42:36 +00:00
|
|
|
/*Tests the function clone, and operator==()*/
|
|
|
|
void TestCloneEqual(void);
|
2000-03-28 23:23:48 +00:00
|
|
|
/*Tests the function handleTransliterate()*/
|
2000-08-14 21:42:36 +00:00
|
|
|
void TestSimpleTransliterate(void);
|
2000-03-28 23:23:48 +00:00
|
|
|
/*Tests the function handleTransliterate()*/
|
2000-08-14 21:42:36 +00:00
|
|
|
void TestTransliterate(void);
|
|
|
|
void TestTransliterate2(void);
|
|
|
|
|
|
|
|
|
2000-03-28 23:23:48 +00:00
|
|
|
//======================================================================
|
|
|
|
// Support methods
|
|
|
|
//======================================================================
|
2000-08-14 21:42:36 +00:00
|
|
|
void expectTranslit(const JamoHangulTransliterator& t,
|
|
|
|
const UnicodeString& message,
|
|
|
|
const UnicodeString& source,
|
|
|
|
int32_t start,
|
|
|
|
int32_t limit,
|
|
|
|
int32_t cursor,
|
|
|
|
const UnicodeString& expectedResult);
|
2000-03-28 23:23:48 +00:00
|
|
|
|
|
|
|
void expect(const JamoHangulTransliterator& t,
|
2000-08-14 21:42:36 +00:00
|
|
|
const UnicodeString& message,
|
2000-03-28 23:23:48 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|