]> gitweb.fperrin.net Git - DictionaryPC.git/blobdiff - src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java
Skip Italian references.
[DictionaryPC.git] / src / com / hughes / android / dictionary / engine / DictionaryBuilderTest.java
index 44540151411e21db8e9a1d4e1ccfc05842b3ef01..6e5fa3fa13959cd7c829b08ea5d5416a8a2c9d33 100644 (file)
@@ -139,19 +139,19 @@ public class DictionaryBuilderTest extends TestCase {
   }
 
   public void testWiktionary_WholeSection_DE() throws Exception {
-    wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.DE.quickdic", "DE", 100);
+    enWiktionaryTestWithWholeSectionToHtml("enwiktionary.WholeSection.DE.quickdic", "DE", 100);
   }
 
   public void testWiktionary_WholeSection_EN() throws Exception {
-    wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.EN.quickdic", "EN", 100);
+    enWiktionaryTestWithWholeSectionToHtml("enwiktionary.WholeSection.EN.quickdic", "EN", 100);
   }
 
   public void testWiktionary_WholeSection_IT() throws Exception {
     // Have to run to 800 to get a few verb conjugations (including essere!)
-    wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.IT.quickdic", "IT", 800);
+    enWiktionaryTestWithWholeSectionToHtml("enwiktionary.WholeSection.IT.quickdic", "IT", 800);
   }
 
-  public void wiktionaryTestWithWholeSectionToHtml(final String name, final String langCode, final int pageLimit) throws Exception {
+  public void enWiktionaryTestWithWholeSectionToHtml(final String name, final String langCode, final int pageLimit) throws Exception {
     final File result = new File(TEST_OUTPUTS + name);
     System.out.println("Writing to: " + result);
     DictionaryBuilder.main(new String[] {
@@ -189,6 +189,10 @@ public class DictionaryBuilderTest extends TestCase {
       wiktionaryTestSingleLang("SingleLang_IT.quickdic", "IT", 100);
   }
 
+  public void testSingleLang_FR() throws Exception {
+      wiktionaryTestSingleLang("SingleLang_FR.quickdic", "FR", 100);
+  }
+
   public void wiktionaryTestSingleLang(final String name, final String langCode, final int pageLimit) throws Exception {
       final File result = new File(TEST_OUTPUTS + name);
       System.out.println("Writing to: " + result);
@@ -216,10 +220,10 @@ public class DictionaryBuilderTest extends TestCase {
         "EN.data", "enwiktionary.english", "Italian", "it", 1000);
   }
 
-  public void testWiktionary_ZH_EN() throws Exception {
-    wiktionaryTestWithLangToEn("wiktionary.zh_en.quickdic", "ZH", "empty.txt",
+  public void testWiktionary_cmn_EN() throws Exception {
+    wiktionaryTestWithLangToEn("wiktionary.cmn_en.quickdic", "cmn", "empty.txt",
         // These missing "e" prevents a complete match, forcing the name to be printed
-        "EN.data", "enwiktionary.english", "Chinese|Mandarin|Cantones", "zh", 1000);
+        "EN.data", "enwiktionary.english", "Chinese|Mandarin", "cmn", 1000);
   }
 
   public void testWiktionary_DE_EN() throws Exception {
@@ -247,10 +251,10 @@ public class DictionaryBuilderTest extends TestCase {
   }
 
   // Chinese
-  public void testWiktionary_ZH_ZH() throws Exception {
-    wiktionaryTestWithLangToEn("wiktionary.zh_zh.quickdic", "ZH", "empty.txt",
+  public void testWiktionary_cmn_cmn() throws Exception {
+    wiktionaryTestWithLangToEn("wiktionary.cmn_cmn.quickdic", "cmn", "empty.txt",
         // These missing "e" prevents a complete match, forcing the name to be printed.
-        "ZH.data", "enwiktionary.chinese", "Chinese|Mandarin|Cantones", "zh", 1000);
+        "cmn.data", "enwiktionary.chinese", "Chinese|Mandarin", "cmn", 1000);
   }
 
   // German