]> gitweb.fperrin.net Git - DictionaryPC.git/commitdiff
go
authorThad Hughes <thad.hughes@gmail.com>
Mon, 11 Oct 2010 22:27:48 +0000 (15:27 -0700)
committerThad Hughes <thad.hughes@gmail.com>
Tue, 13 Dec 2011 01:29:12 +0000 (17:29 -0800)
src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java
src/com/hughes/android/dictionary/engine/IndexBuilder.java

index a2468f21006da050687f06169c6c37392b30e0bb..493701560797633dd78ebaa67db30a38de59bdfb 100644 (file)
@@ -12,7 +12,7 @@ import junit.framework.TestCase;
 public class DictionaryBuilderTest extends TestCase {
   
   public void testGermanCombined() throws IOException {
-    final File result = File.createTempFile("de_en", ".dict");
+    final File result = new File("testdata/de_en.dict");
     System.out.println("Writing to: " + result);
     DictionaryBuilder.main(new String[] {
         "--dictOut=" + result.getAbsolutePath(),
index 59d44c5c43a4e3b3ae231f67c3063962149440f3..0f35b50710fada821fcb93277d5e5a3039ab3ede 100644 (file)
@@ -33,6 +33,7 @@ public class IndexBuilder {
       final int indexRow = index.sortedIndexEntries.size();
       index.sortedIndexEntries.add(new Index.IndexEntry(tokenData.token, rows.size()));
       rows.add(new TokenRow(indexRow, rows.size(), index));
+      System.out.println("Added TokenRow: " + rows.get(rows.size() - 1));
       int count = 0;
       System.out.println("TOKEN: " + tokenData.token);
       for (final Map.Entry<EntryTypeName, List<EntryData>> typeToEntry : tokenData.typeToEntries.entrySet()) {