ICU-1533 disable rollback code
X-SVN-Rev: 7033
This commit is contained in:
parent
094483a1ff
commit
94ce005739
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java,v $
|
||||
* $Date: 2001/11/20 17:55:54 $
|
||||
* $Revision: 1.74 $
|
||||
* $Date: 2001/11/21 00:06:49 $
|
||||
* $Revision: 1.75 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
@ -1546,20 +1546,26 @@ public class TransliteratorTest extends TestFmwk {
|
||||
// Katakana should be untouched
|
||||
expect(t, "a\u3042\u30A2", "\u3042\u3042\u30A2");
|
||||
|
||||
Transliterator a =
|
||||
Transliterator.createFromRules("a", "a > A;", Transliterator.FORWARD);
|
||||
Transliterator A =
|
||||
Transliterator.createFromRules("A", "A > b;", Transliterator.FORWARD);
|
||||
|
||||
Transliterator array[] = new Transliterator[] {
|
||||
a,
|
||||
Transliterator.getInstance("NFD"),
|
||||
A };
|
||||
|
||||
t = new CompoundTransliterator(array, new UnicodeSet("[:Ll:]"));
|
||||
|
||||
expect(t, "aAaA", "bAbA");
|
||||
if (FALSE) {
|
||||
// This test will only work if Transliterator.ROLLBACK is
|
||||
// true. Otherwise, this test will fail, revealing a
|
||||
// limitation of global filters in incremental mode.
|
||||
|
||||
Transliterator a =
|
||||
Transliterator.createFromRules("a", "a > A;", Transliterator.FORWARD);
|
||||
Transliterator A =
|
||||
Transliterator.createFromRules("A", "A > b;", Transliterator.FORWARD);
|
||||
|
||||
Transliterator array[] = new Transliterator[] {
|
||||
a,
|
||||
Transliterator.getInstance("NFD"),
|
||||
A };
|
||||
|
||||
t = new CompoundTransliterator(array, new UnicodeSet("[:Ll:]"));
|
||||
|
||||
expect(t, "aAaA", "bAbA");
|
||||
}
|
||||
|
||||
expect("$smooth = x; $macron = q; [:^L:] { ([aeiouyAEIOUY] $macron?) } [^aeiouyAEIOUY$smooth$macron] > | $1 $smooth ;",
|
||||
"a",
|
||||
"ax");
|
||||
|
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/test/translit/Attic/TransliteratorTest.java,v $
|
||||
* $Date: 2001/11/20 17:55:54 $
|
||||
* $Revision: 1.74 $
|
||||
* $Date: 2001/11/21 00:06:49 $
|
||||
* $Revision: 1.75 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
@ -1546,20 +1546,26 @@ public class TransliteratorTest extends TestFmwk {
|
||||
// Katakana should be untouched
|
||||
expect(t, "a\u3042\u30A2", "\u3042\u3042\u30A2");
|
||||
|
||||
Transliterator a =
|
||||
Transliterator.createFromRules("a", "a > A;", Transliterator.FORWARD);
|
||||
Transliterator A =
|
||||
Transliterator.createFromRules("A", "A > b;", Transliterator.FORWARD);
|
||||
|
||||
Transliterator array[] = new Transliterator[] {
|
||||
a,
|
||||
Transliterator.getInstance("NFD"),
|
||||
A };
|
||||
|
||||
t = new CompoundTransliterator(array, new UnicodeSet("[:Ll:]"));
|
||||
|
||||
expect(t, "aAaA", "bAbA");
|
||||
if (FALSE) {
|
||||
// This test will only work if Transliterator.ROLLBACK is
|
||||
// true. Otherwise, this test will fail, revealing a
|
||||
// limitation of global filters in incremental mode.
|
||||
|
||||
Transliterator a =
|
||||
Transliterator.createFromRules("a", "a > A;", Transliterator.FORWARD);
|
||||
Transliterator A =
|
||||
Transliterator.createFromRules("A", "A > b;", Transliterator.FORWARD);
|
||||
|
||||
Transliterator array[] = new Transliterator[] {
|
||||
a,
|
||||
Transliterator.getInstance("NFD"),
|
||||
A };
|
||||
|
||||
t = new CompoundTransliterator(array, new UnicodeSet("[:Ll:]"));
|
||||
|
||||
expect(t, "aAaA", "bAbA");
|
||||
}
|
||||
|
||||
expect("$smooth = x; $macron = q; [:^L:] { ([aeiouyAEIOUY] $macron?) } [^aeiouyAEIOUY$smooth$macron] > | $1 $smooth ;",
|
||||
"a",
|
||||
"ax");
|
||||
|
Loading…
Reference in New Issue
Block a user