}
}
}
+
+ public void testURLFormatting() {
+ }
public void testEnItWiktionary() throws IOException {
final RandomAccessFile raf = new RandomAccessFile(OUTPUTS + "EN-IT.quickdic", "r");
assertTrue(!((TokenRow)rows.get(0)).getIndexEntry().htmlEntries.isEmpty());
}
+ {
+ final IndexEntry searchResult = itIndex.findInsertionPoint("azzurro", new AtomicBoolean(
+ false));
+ HtmlEntry htmlEntry = searchResult.htmlEntries.get(0);
+ System.out.println("azzurro:\n" + htmlEntry.getHtml());
+ }
+
raf.close();
}
+ public void testDeEnWiktionary() throws IOException {
+ final RandomAccessFile raf = new RandomAccessFile(OUTPUTS + "DE-EN.quickdic", "r");
+ final Dictionary dict = new Dictionary(raf);
+
+ final Index deIndex = dict.indices.get(0);
+
+ {
+ final IndexEntry searchResult = deIndex.findInsertionPoint("rot", new AtomicBoolean(
+ false));
+ HtmlEntry htmlEntry = searchResult.htmlEntries.get(0);
+ System.out.println("rot:\n" + htmlEntry.getHtml());
+ }
+
+ raf.close();
+ }
+
public void testGermanMetadata() throws IOException {
final RandomAccessFile raf = new RandomAccessFile(TEST_OUTPUTS + "de-en.quickdic", "r");
final Dictionary dict = new Dictionary(raf);
assertSearchResult("Höschen", "Hos", deIndex.findInsertionPoint("Hos", new AtomicBoolean(false)));
assertSearchResult("Höschen", "hos", deIndex.findInsertionPoint("hos", new AtomicBoolean(false)));
-
+
raf.close();
}