package org.cogroo.dictionary.impl;

import static org.junit.Assert.*;

import java.io.IOException;
import java.io.InputStream;

import org.junit.Test;

public class FSADictionaryTest {

  @Test
  public void testSimpleCount() throws IOException {
    String path = "/fsa_dictionaries/pos/pt_br_jspell_corpus";
    InputStream dict = FSADictionary.class.getResourceAsStream(path + ".dict");
    InputStream info = FSADictionary.class.getResourceAsStream(path + ".info");
    
    FSADictionary td = FSADictionary.create(dict, info);
    
    System.out.println(td.getTagsAndLemms("d"));;
  }
}

@@ -210,18 +210,21 @@
 test
-SimpleCoun
+LemmatizerDic
 t() 
@@ -301,15 +301,8 @@
 pell
-_corpus
 %22;%0A 
@@ -535,53 +535,69 @@
     
-System.out.println(td.getTagsAnd
+assertEquals(%22menino%22, td.get
 Lemm
+a
 s(%22
-d%22));;
+meninos%22, %22n%22)%5B0%5D);%0A    
 %0A  %7D

Add unit test for FSADictionary