From c58220701ada0ccca85cd290a57b3e2277537b75 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 21 Oct 2014 20:50:13 -0700 Subject: Implement unit tests for message builder and message parsers --- unittest/data/parser/input/mbox/jwz/140 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 unittest/data/parser/input/mbox/jwz/140 (limited to 'unittest/data/parser/input/mbox/jwz/140') diff --git a/unittest/data/parser/input/mbox/jwz/140 b/unittest/data/parser/input/mbox/jwz/140 new file mode 100644 index 00000000..c3763e01 --- /dev/null +++ b/unittest/data/parser/input/mbox/jwz/140 @@ -0,0 +1,31 @@ +From: jwz +Subject: test of URLs in text/plain messages + +We search through text/plain messages for URLs and make them clickable. +Here are some examples. + +These should all have links over them: + + http://home.netscape.com and http://home.netscape.com/, (and the + comma shouldn't be in the URL) "http://home.netscape.com:80/" + and and mailto:jwz as well as + mailto:jwz%2Cterry, and mailto:jwz,terry, but note that the final + commas shouldn't be in the URLs. + + http://host/some-random-image.map?300,200 should have both numbers + inside the link, and http://host/some-random.cgi?3,2,1, should + have all three numbers in the link, but not the trailing comma. + gopher://host/ blah blah blah. But http://host,other-junk should + stop before the comma, not include other junk in the URL. + news:some.group should work. + +These should NOT have links over them: + + mailto: shouldn't, since that's useless, as is news:, nor should + about: since that's a word that occurs at the end of a sentence a + lot. http: all by itself shouldn't have a link, neither should + gopher:, and "internal-gopher-binary" is a hackish internal image. + news:a shouldn't either, because it's short. + internal-external-reconnect sure shouldn't. + +Ok! That should cover it. -- cgit v1.2.3