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