changeset 97:2c49ddbe95ac

fix tests for changes in RomanizationLoC (not changing wa-).
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 17 Oct 2018 18:44:25 +0200
parents e8cee8cf2f52
children 452d02798054
files src/test/java/openmind/RomanizationLocTest.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/test/java/openmind/RomanizationLocTest.java	Mon Aug 27 16:34:46 2018 +0200
+++ b/src/test/java/openmind/RomanizationLocTest.java	Wed Oct 17 18:44:25 2018 +0200
@@ -36,7 +36,8 @@
     @Test
     public void testConvertRule3() {
         assertEquals("bi-al-tamām̄", RomanizationLoC.convert("bi al-tamām̄"));
-        assertEquals("wa-al-kamāl", RomanizationLoC.convert("wa al-kamāl"));
+        // 25.6.2018: Do not use for wa (problem with Persian) 
+        //assertEquals("wa-al-kamāl", RomanizationLoC.convert("wa al-kamāl"));
         assertEquals("bi-tarīq", RomanizationLoC.convert("bi tarīq"));
     }
 
@@ -82,6 +83,8 @@
     @Test
     public void testConvertRules() {
         assertEquals("Risālah fī al-ʿamal bi-rubʿ al-muqanṭarāt al-shamālīyah", RomanizationLoC.convert("Risālaẗ fī al-ʿamal bi-rubʿ al-muqanṭarāt al-šamālīyaẗ"));
-        assertEquals("Mukhtaṣarah fī ṣanʿah baʿḍ al-ālāt al-raṣadiyyah wa-al-ʿamal bi-hā", RomanizationLoC.convert("Muḫtaṣaraẗ fī ṣanʿaẗ baʿḍ al-ālāt al-raṣadiyyaẗ wa-ʾl-ʿamal bi-hā"));
+        // 25.6.2018: Do not use for wa (problem with Persian) 
+        //assertEquals("Mukhtaṣarah fī ṣanʿah baʿḍ al-ālāt al-raṣadiyyah wa-al-ʿamal bi-hā", RomanizationLoC.convert("Muḫtaṣaraẗ fī ṣanʿaẗ baʿḍ al-ālāt al-raṣadiyyaẗ wa-ʾl-ʿamal bi-hā"));
+        assertEquals("Mukhtaṣarah fī ṣanʿah baʿḍ al-ālāt al-raṣadiyyah wa al-ʿamal bi-hā", RomanizationLoC.convert("Muḫtaṣaraẗ fī ṣanʿaẗ baʿḍ al-ālāt al-raṣadiyyaẗ wa-ʾl-ʿamal bi-hā"));
     }
 }