package org.col.parser;

import java.util.List;

import com.google.common.collect.Lists;
import org.junit.Test;

/**
 *
 */
public class LanguageParserTest extends ParserTestBase<String> {

  public LanguageParserTest() {
    super(LanguageParser.PARSER);
  }

  @Test
  public void parse() throws Exception {
    assertParse("deu", "de");
    assertParse("deu", "deu");
    assertParse("deu", "german");
    assertParse("deu", "deutsch");
    assertParse("deu", "GER");
    assertParse("eng", "en");
  
    for (String x : new String[]{"Limburgan", "Limburger", "Limburgish", "Lim", "li"}) {
      assertParse("lim", x);
    }
    
    assertUnparsable("unknown");
    assertUnparsable("zz");
  }


  @Override
  List<String> additionalUnparsableValues() {
    return Lists.newArrayList("term", "deuter");
  }
}
package org.col.parser;

import java.util.List;

import com.google.common.collect.Lists;
import org.junit.Test;

/**
 *
 */
public class LanguageParserTest extends ParserTestBase<String> {

  public LanguageParserTest() {
    super(LanguageParser.PARSER);
  }

  @Test
  public void parse() throws Exception {
    assertParse("deu", "de");
    assertParse("deu", "deu");
    assertParse("deu", "german");
    assertParse("deu", "deutsch");
    assertParse("deu", "GER");
    assertParse("eng", "en");

    assertUnparsable("unknown");
    assertUnparsable("zz");
  }


  @Override
  List<String> additionalUnparsableValues() {
    return Lists.newArrayList("term", "deuter");
  }
}
--- 
+++ 
@@ -22,7 +22,11 @@
     assertParse("deu", "deutsch");
     assertParse("deu", "GER");
     assertParse("eng", "en");
-
+  
+    for (String x : new String[]{"Limburgan", "Limburger", "Limburgish", "Lim", "li"}) {
+      assertParse("lim", x);
+    }
+    
     assertUnparsable("unknown");
     assertUnparsable("zz");
   }
Add more lang parse tests
