* Truncated uuencoded files used to cause infinite loops. Verify that
* they work now.
*/
@Test
public void truncatedUuencodedFile() throws IOException {
UuencodeXref xref = new UuencodeXref(
new StringReader("begin 644 test.txt\n"));
// Generating the xref used to loop forever.
StringWriter out = new StringWriter();
xref.write(out);
assertEquals("<a class=\"l\" name=\"1\" href=\"#1\">1</a>"
+ "<strong>begin</strong> <i>644</i> "
+ "<a href=\"/source/s?q=test.txt\">test.txt</a>"
+ "<span class='c'>\n"