@@ -221,7 +221,7 @@ fn test_header_ids_multiple_blocks() {
221221#[ test]
222222fn test_short_markdown_summary ( ) {
223223 fn t ( input : & str , expect : & str ) {
224- let output = short_markdown_summary ( input) ;
224+ let output = short_markdown_summary ( input, & [ ] [ .. ] ) ;
225225 assert_eq ! ( output, expect, "original: {}" , input) ;
226226 }
227227
@@ -232,6 +232,7 @@ fn test_short_markdown_summary() {
232232 t ( "Hard-break \n summary" , "Hard-break summary" ) ;
233233 t ( "hello [Rust] :)\n \n [Rust]: https://www.rust-lang.org" , "hello Rust :)" ) ;
234234 t ( "hello [Rust](https://www.rust-lang.org \" Rust\" ) :)" , "hello Rust :)" ) ;
235+ t ( "dud [link]" , "dud [link]" ) ;
235236 t ( "code `let x = i32;` ..." , "code <code>let x = i32;</code> …" ) ;
236237 t ( "type `Type<'static>` ..." , "type <code>Type<'static></code> …" ) ;
237238 t ( "# top header" , "top header" ) ;
@@ -259,6 +260,7 @@ fn test_plain_text_summary() {
259260 t ( "Hard-break \n summary" , "Hard-break summary" ) ;
260261 t ( "hello [Rust] :)\n \n [Rust]: https://www.rust-lang.org" , "hello Rust :)" ) ;
261262 t ( "hello [Rust](https://www.rust-lang.org \" Rust\" ) :)" , "hello Rust :)" ) ;
263+ t ( "dud [link]" , "dud [link]" ) ;
262264 t ( "code `let x = i32;` ..." , "code `let x = i32;` …" ) ;
263265 t ( "type `Type<'static>` ..." , "type `Type<'static>` …" ) ;
264266 t ( "# top header" , "top header" ) ;
0 commit comments