package io.github.ikegamiyukino.neologdn;

import static org.junit.Assert.*;

import org.junit.Test;

import io.github.ikegamiyukino.neologdn.NeologdNormalizer;

public class TestNeologdNormalizer {
    NeologdNormalizer normalizer = new NeologdNormalizer();

    @Test
    public void test() {
        assertEquals(normalizer.normalize(" 餃 子 "), "餃子");
        assertEquals(normalizer.normalize("０"), "0");
        assertEquals(normalizer.normalize("ﾊﾝｶｸ"), "ハンカク");
        assertEquals(normalizer.normalize("o₋o"), "o-o");
        assertEquals(normalizer.normalize("majika━"), "majikaー");
        assertEquals(normalizer.normalize("わ〰い"), "わい");
        assertEquals(normalizer.normalize("スーパーーーー"), "スーパー");
        assertEquals(normalizer.normalize("!#"), "!#");
        assertEquals(normalizer.normalize("ゼンカク　スペース"), "ゼンカクスペース");
        assertEquals(normalizer.normalize("お             お"), "おお");
        assertEquals(normalizer.normalize("      おお"), "おお");
        assertEquals(normalizer.normalize("おお      "), "おお");
        assertEquals(normalizer.normalize("検索 エンジン 自作 入門 を 買い ました!!!"), "検索エンジン自作入門を買いました!!!");
        assertEquals(normalizer.normalize("アルゴリズム C"), "アルゴリズムC");
        assertEquals(normalizer.normalize("　　　ＰＲＭＬ　　副　読　本　　　"), "PRML副読本");
        assertEquals(normalizer.normalize("Coding the Matrix"), "Coding the Matrix");
        assertEquals(normalizer.normalize("南アルプスの　天然水　Ｓｐａｒｋｉｎｇ　Ｌｅｍｏｎ　レモン一絞り"),
                "南アルプスの天然水Sparking Lemonレモン一絞り");
        assertEquals(normalizer.normalize("南アルプスの　天然水-　Ｓｐａｒｋｉｎｇ*　Ｌｅｍｏｎ+　レモン一絞り"),
                "南アルプスの天然水- Sparking*Lemon+レモン一絞り");
        assertEquals(normalizer.normalize("ﾊﾟﾊﾟ"), "パパ");
        assertEquals(normalizer.normalize("a˗֊‐‑‒–⁃⁻₋−"), "a-");
        assertEquals(normalizer.normalize("あ﹣－ｰ—―─━ー"), "あー");
        assertEquals(normalizer.normalize("チルダ~∼∾〜〰～"), "チルダ");
        assertEquals(normalizer.normalize("(ﾟ∀ﾟ )"), "(゜∀゜)");

    }

}
@@ -99,68 +99,8 @@
 t;%0A%0A
-import io.github.ikegamiyukino.neologdn.NeologdNormalizer;%0A%0A
 publ
@@ -1869,13 +1869,80 @@
 %22);%0A
+        assertEquals(normalizer.normalize(%22%EF%BE%8A%EF%BE%9D%EF%BD%B6%EF%BD%B8%EF%BE%80%EF%BE%9E%EF%BD%B8%EF%BE%83%EF%BE%9D%22), %22%E3%83%8F%E3%83%B3%E3%82%AB%E3%82%AF%E3%83%80%E3%82%AF%E3%83%86%E3%83%B3%22);
 %0A    %7D%0A
-%0A
 %7D

Add hankaku-dakuten case to test