@@ -87,13 +87,15 @@ public void delimiterSeparation() {
8787 assertLinked ("http://example.org/:" , "|http://example.org/|:" );
8888 assertLinked ("http://example.org/?" , "|http://example.org/|?" );
8989 assertLinked ("http://example.org/!" , "|http://example.org/|!" );
90+ assertLinked ("http://example.org/;" , "|http://example.org/|;" );
9091 }
9192
9293 @ Test
9394 public void matchingPunctuation () {
9495 assertLinked ("http://example.org/a(b)" , "|http://example.org/a(b)|" );
9596 assertLinked ("http://example.org/a[b]" , "|http://example.org/a[b]|" );
9697 assertLinked ("http://example.org/a{b}" , "|http://example.org/a{b}|" );
98+ assertLinked ("http://example.org/a<b>" , "|http://example.org/a<b>|" );
9799 assertLinked ("http://example.org/a\" b\" " , "|http://example.org/a\" b\" |" );
98100 assertLinked ("http://example.org/a'b'" , "|http://example.org/a'b'|" );
99101 assertLinked ("(http://example.org/)" , "(|http://example.org/|)" );
@@ -110,11 +112,33 @@ public void matchingPunctuationTricky() {
110112 assertLinked ("[(http://example.org/)]" , "[(|http://example.org/|)]" );
111113 assertLinked ("(http://example.org/)." , "(|http://example.org/|)." );
112114 assertLinked ("(http://example.org/.)" , "(|http://example.org/|.)" );
115+ assertLinked ("http://example.org/>" , "|http://example.org/|>" );
113116 // not sure about these:
114117 assertLinked ("http://example.org/(" , "|http://example.org/(|" );
115118 assertLinked ("http://example.org/]()" , "|http://example.org/|]()" );
116119 }
117120
121+ @ Test
122+ public void html () {
123+ assertLinked ("http://example.org\" >" , "|http://example.org|\" >" );
124+ assertLinked ("http://example.org'>" , "|http://example.org|'>" );
125+ assertLinked ("http://example.org\" />" , "|http://example.org|\" />" );
126+ assertLinked ("http://example.org'/>" , "|http://example.org|'/>" );
127+ }
128+
129+ @ Test
130+ public void css () {
131+ assertLinked ("http://example.org\" );" , "|http://example.org|\" );" );
132+ assertLinked ("http://example.org');" , "|http://example.org|');" );
133+ }
134+
135+ @ Test
136+ public void slash () {
137+ assertLinked ("http://example.org/" , "|http://example.org/|" );
138+ assertLinked ("http://example.org/a/" , "|http://example.org/a/|" );
139+ assertLinked ("http://example.org//" , "|http://example.org//|" );
140+ }
141+
118142 @ Test
119143 public void multiple () {
120144 assertLinked ("http://one.org/ http://two.org/" , "|http://one.org/| |http://two.org/|" );
0 commit comments