From 00961b633f3a1db8742877b46aeae82e02c9d8f5 Mon Sep 17 00:00:00 2001 From: dchandler Date: Sat, 5 Feb 2005 18:47:17 +0000 Subject: [PATCH] Added a test case for bug 998476. No fix, just a test case verifying the bug. --- build.xml | 5 + junitbuild.xml | 1 + source/org/thdl/tib/input/DuffPaneTest.java | 104 ++------------ .../org/thdl/tib/input/DuffPaneTestBase.java | 129 ++++++++++++++++++ source/org/thdl/tib/input/TinyTest.java | 76 +++++++++++ 5 files changed, 220 insertions(+), 95 deletions(-) create mode 100644 source/org/thdl/tib/input/DuffPaneTestBase.java create mode 100644 source/org/thdl/tib/input/TinyTest.java diff --git a/build.xml b/build.xml index 0be81b0..1126bcc 100644 --- a/build.xml +++ b/build.xml @@ -490,6 +490,11 @@ Contributor(s): ______________________________________. + + + + + EWTS (and indirectly, the EWTS->TMW keyboard). This test + is separate from DuffPaneTest for the following reasons: + +

This JUnit test is meant to do very little. That way you can + change it to do something interesting and turn the logging way up to + get insight. Why JUnit? Because our Ant build system makes this + very easy to run via 'ant check-one + -Dsoletest=org.thdl.tib.input.TinyTest. */ +public class TinyTest extends DuffPaneTestBase { + public TinyTest(String a0) { + super(a0); + } + + /** Tests this part of bug 998476: + +

+TMW -> EWTS conversion errors
+The following incorrect conversion are happening:
+
+dga'o -> dag'o
+bsad -> bas.d
+'da'i -> 'ad'i
+
+'da'i should produce 'da'i since the genitive particle 'i can
+only be appended to syllables that end with vowel or
+with a chung ('). For instance sgra + 'i = sgra'i, nam
+mkha' + 'i = nam mkha'i. The case here is 'da' + 'i = 'da'i.
+syllable 'ad can't take the genitive 'i, so 'ad'i is invalid.
+
+Of course this is a hypothetical syllable with no meaning,
+but following the rules 'ad would be correct. 'da would be
+mistaken. "In two-lettered words, the first is always the
+root letter." (losang thonden's modern tibetan language,
+pag 41).
+
+ + */ + public void testBug998476() { + enableEWTSKeyboard(); + e("dga'o", "dag'o"); // FIXME: this is a bug + e("bsad", "bas.d"); // FIXME: this is a bug + e("'da'i", "'ad'i"); // FIXME: this is a bug + } +} + +