diff --git a/build.xml b/build.xml
index 0b7e95b..070233d 100644
--- a/build.xml
+++ b/build.xml
@@ -291,12 +291,6 @@
-
-
-
-
-
+
+
+
+
@@ -646,7 +645,6 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/junitbuild.xml b/junitbuild.xml
index d675d97..aafd347 100644
--- a/junitbuild.xml
+++ b/junitbuild.xml
@@ -45,6 +45,7 @@
+
diff --git a/source/org/thdl/tib/text/tshegbar/UnicodeGraphemeClusterTest.java b/source/org/thdl/tib/text/tshegbar/UnicodeGraphemeClusterTest.java
new file mode 100644
index 0000000..72a2fa5
--- /dev/null
+++ b/source/org/thdl/tib/text/tshegbar/UnicodeGraphemeClusterTest.java
@@ -0,0 +1,47 @@
+/*
+The contents of this file are subject to the THDL Open Community License
+Version 1.0 (the "License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License on the THDL web site
+(http://www.thdl.org/).
+
+Software distributed under the License is distributed on an "AS IS" basis,
+WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+License for the specific terms governing rights and limitations under the
+License.
+
+The Initial Developer of this software is the Tibetan and Himalayan Digital
+Library (THDL). Portions created by the THDL are Copyright 2002-2003 THDL.
+All Rights Reserved.
+
+Contributor(s): ______________________________________.
+*/
+
+package org.thdl.tib.text.tshegbar;
+
+import junit.framework.TestCase;
+
+/**
+ * @author David Chandler
+ *
+ * Tests {@link org.thdl.tib.text.tshegbar.UnicodeGraphemeCluster} at the unit level.
+ */
+public class UnicodeGraphemeClusterTest extends TestCase implements UnicodeConstants {
+ /**
+ * Plain vanilla constructor for UnicodeGraphemeClusterTest.
+ * @param arg0
+ */
+ public UnicodeGraphemeClusterTest(String arg0) {
+ super(arg0);
+ }
+ /** Invokes a text UI and runs all this class's tests. */
+ public static void main(String[] args) {
+ junit.textui.TestRunner.run(UnicodeGraphemeClusterTest.class);
+ }
+
+ /** Tests the getTopToBottomCodePoints() method and the
+ * UnicodeGraphemeCluster(String) constructor. */
+ public void testGetTopToBottomCodepointsAndMore() {
+ assertTrue(new UnicodeGraphemeCluster("\u0F00").getTopToBottomCodepoints().equals("\u0F7E\u0F7C\u0F68"));
+ assertTrue(new UnicodeGraphemeCluster("\u0F66\u0F93\u0F91\u0FA7\u0F92\u0FAD\u0F77\u0F83\u0F86\u0F84").getTopToBottomCodepoints().equals("\u0F86\u0F83\u0F80\u0F66\u0F92\u0FB7\u0F91\u0FA6\u0FB7\u0F92\u0FB2\u0FAD\u0F71\u0F84"));
+ }
+}
diff --git a/source/org/thdl/tib/text/tshegbar/test.java b/source/org/thdl/tib/text/tshegbar/test.java
index 1ac2cd6..3924adf 100644
--- a/source/org/thdl/tib/text/tshegbar/test.java
+++ b/source/org/thdl/tib/text/tshegbar/test.java
@@ -26,17 +26,10 @@ import org.thdl.util.ThdlLazyException;
* @author David Chandler
*/
public class test implements UnicodeConstants {
- public void testTopToBottomForLegalGraphemeClusters() {
- // DLC delete: System.out.println("see this " + UnicodeUtils.unicodeStringToString(new UnicodeGraphemeCluster("\u0F00").getTopToBottomCodepoints()));
- ThdlDebug.verify(new UnicodeGraphemeCluster("\u0F00").getTopToBottomCodepoints().equals("\u0F7E\u0F7C\u0F68"));
- ThdlDebug.verify(new UnicodeGraphemeCluster("\u0F66\u0F93\u0F91\u0FA7\u0F92\u0FAD\u0F77\u0F83\u0F86\u0F84").getTopToBottomCodepoints().equals("\u0F86\u0F83\u0F80\u0F66\u0F92\u0FB7\u0F91\u0FA6\u0FB7\u0F92\u0FB2\u0FAD\u0F71\u0F84"));
- }
-
/** tests this package */
public test() throws Throwable {
super();
- testTopToBottomForLegalGraphemeClusters();
}
/** Unit tests this package. */