@@ -221,7 +221,7 @@ fn test_header_ids_multiple_blocks() {
221
221
#[ test]
222
222
fn test_short_markdown_summary ( ) {
223
223
fn t ( input : & str , expect : & str ) {
224
- let output = short_markdown_summary ( input) ;
224
+ let output = short_markdown_summary ( input, & [ ] [ .. ] ) ;
225
225
assert_eq ! ( output, expect, "original: {}" , input) ;
226
226
}
227
227
@@ -232,6 +232,7 @@ fn test_short_markdown_summary() {
232
232
t ( "Hard-break \n summary" , "Hard-break summary" ) ;
233
233
t ( "hello [Rust] :)\n \n [Rust]: https://www.rust-lang.org" , "hello Rust :)" ) ;
234
234
t ( "hello [Rust](https://www.rust-lang.org \" Rust\" ) :)" , "hello Rust :)" ) ;
235
+ t ( "dud [link]" , "dud [link]" ) ;
235
236
t ( "code `let x = i32;` ..." , "code <code>let x = i32;</code> …" ) ;
236
237
t ( "type `Type<'static>` ..." , "type <code>Type<'static></code> …" ) ;
237
238
t ( "# top header" , "top header" ) ;
@@ -259,6 +260,7 @@ fn test_plain_text_summary() {
259
260
t ( "Hard-break \n summary" , "Hard-break summary" ) ;
260
261
t ( "hello [Rust] :)\n \n [Rust]: https://www.rust-lang.org" , "hello Rust :)" ) ;
261
262
t ( "hello [Rust](https://www.rust-lang.org \" Rust\" ) :)" , "hello Rust :)" ) ;
263
+ t ( "dud [link]" , "dud [link]" ) ;
262
264
t ( "code `let x = i32;` ..." , "code `let x = i32;` …" ) ;
263
265
t ( "type `Type<'static>` ..." , "type `Type<'static>` …" ) ;
264
266
t ( "# top header" , "top header" ) ;
0 commit comments