From: Reimar Döffinger Date: Mon, 24 Aug 2015 19:28:37 +0000 (+0200) Subject: Disable some debug code to allow compilation. X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=commitdiff_plain;h=4700f749611d8569a78359b9ed1aecd52e9e8f21 Disable some debug code to allow compilation. --- diff --git a/src/com/hughes/android/dictionary/engine/LanguageTest.java b/src/com/hughes/android/dictionary/engine/LanguageTest.java index 605e546..76094b2 100644 --- a/src/com/hughes/android/dictionary/engine/LanguageTest.java +++ b/src/com/hughes/android/dictionary/engine/LanguageTest.java @@ -192,7 +192,6 @@ public class LanguageTest extends TestCase { Collections.sort(names); System.out.println(names); //assertEquals(enLangs, Language.isoCodeToResources.keySet()); - assertEquals(enLangs, Language.isoCodeToResources.keySet()); } } diff --git a/src/com/hughes/android/dictionary/parser/GeneralTest.java b/src/com/hughes/android/dictionary/parser/GeneralTest.java deleted file mode 100644 index d566e9e..0000000 --- a/src/com/hughes/android/dictionary/parser/GeneralTest.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.hughes.android.dictionary.parser; - -import static org.junit.Assert.*; - -import com.hughes.util.StringUtil; - -import org.apache.commons.lang3.StringEscapeUtils; -import org.junit.Test; - -public class GeneralTest { - - @Test - public void testEscapeHtml() { - // This isn't actually valid html: - assertEquals("IPA|/dɛɪ̯/|lang=nds", StringEscapeUtils.escapeHtml3("IPA|/dɛɪ̯/|lang=nds")); - // Hopefully this is: - assertEquals("IPA|/dɛɪ̯/|lang=nds", StringUtil.escapeUnicodeToPureHtml("IPA|/dɛɪ̯/|lang=nds")); - } - -} diff --git a/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java b/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java index 3af9a13..f05e71e 100644 --- a/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java +++ b/src/com/hughes/android/dictionary/parser/wiktionary/WiktionaryLangs.java @@ -119,11 +119,11 @@ public class WiktionaryLangs { { - Set missing = new LinkedHashSet(isoCodeToEnWikiName.keySet()); - missing.removeAll(Language.isoCodeToResources.keySet()); + //Set missing = new LinkedHashSet(isoCodeToEnWikiName.keySet()); + //missing.removeAll(Language.isoCodeToResources.keySet()); //System.out.println(missing); } - assert Language.isoCodeToResources.keySet().containsAll(isoCodeToEnWikiName.keySet()); + //assert Language.isoCodeToResources.keySet().containsAll(isoCodeToEnWikiName.keySet()); } public static final Map> wikiCodeToIsoCodeToWikiName = new LinkedHashMap>();