]> git.lizzy.rs Git - rust.git/commitdiff
Fix unit tests
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 3 Jan 2018 08:41:54 +0000 (14:11 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Mon, 22 Jan 2018 09:54:29 +0000 (15:24 +0530)
src/librustdoc/html/markdown.rs

index c76a47ed25b100bb364e5aa91a516639104f5e3f..c8de48ea42b30c40423456ff1fa03e3733a8a632 100644 (file)
@@ -1374,14 +1374,14 @@ fn v() -> Vec<String> {
     #[test]
     fn issue_17736() {
         let markdown = "# title";
-        format!("{}", Markdown(markdown, RenderType::Pulldown));
+        format!("{}", Markdown(markdown, &[], RenderType::Pulldown));
         reset_ids(true);
     }
 
     #[test]
     fn test_header() {
         fn t(input: &str, expect: &str) {
-            let output = format!("{}", Markdown(input, RenderType::Pulldown));
+            let output = format!("{}", Markdown(input, &[], RenderType::Pulldown));
             assert_eq!(output, expect, "original: {}", input);
             reset_ids(true);
         }
@@ -1403,7 +1403,7 @@ fn t(input: &str, expect: &str) {
     #[test]
     fn test_header_ids_multiple_blocks() {
         fn t(input: &str, expect: &str) {
-            let output = format!("{}", Markdown(input, RenderType::Pulldown));
+            let output = format!("{}", Markdown(input, &[], RenderType::Pulldown));
             assert_eq!(output, expect, "original: {}", input);
         }