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");
  }
}
@@ -494,16 +494,147 @@
  %22en%22);%0A
+  %0A    for (String x : new String%5B%5D%7B%22Limburgan%22, %22Limburger%22, %22Limburgish%22, %22Lim%22, %22li%22%7D) %7B%0A      assertParse(%22lim%22, x);%0A    %7D%0A    
 %0A    ass

Add more lang parse tests