diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-07 17:50:14 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-11 14:29:58 +0100 |
| commit | 673fd23dff47bf72953d1408b1cfbd45f6ef859b (patch) | |
| tree | 80ea0b0cf1251caceb2e5ce91939771be1846b3b /src/librustdoc/html/highlight/tests.rs | |
| parent | 0395fc2242c2b04f3a0a330e2e1f6eeaf5939777 (diff) | |
| download | rust-673fd23dff47bf72953d1408b1cfbd45f6ef859b.tar.gz rust-673fd23dff47bf72953d1408b1cfbd45f6ef859b.zip | |
Update rustdoc tests
Diffstat (limited to 'src/librustdoc/html/highlight/tests.rs')
| -rw-r--r-- | src/librustdoc/html/highlight/tests.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustdoc/html/highlight/tests.rs b/src/librustdoc/html/highlight/tests.rs index fccbb98f80f..8f39130bb83 100644 --- a/src/librustdoc/html/highlight/tests.rs +++ b/src/librustdoc/html/highlight/tests.rs @@ -23,7 +23,7 @@ fn test_html_highlighting() { let src = include_str!("fixtures/sample.rs"); let html = { let mut out = Buffer::new(); - write_code(&mut out, src, None, None); + write_code(&mut out, src, None, None, None); format!("{STYLE}<pre><code>{}</code></pre>\n", out.into_inner()) }; expect_file!["fixtures/sample.html"].assert_eq(&html); @@ -37,7 +37,7 @@ fn test_dos_backline() { println!(\"foo\");\r\n\ }\r\n"; let mut html = Buffer::new(); - write_code(&mut html, src, None, None); + write_code(&mut html, src, None, None, None); expect_file!["fixtures/dos_line.html"].assert_eq(&html.into_inner()); }); } @@ -51,7 +51,7 @@ let x = super::b::foo; let y = Self::whatever;"; let mut html = Buffer::new(); - write_code(&mut html, src, None, None); + write_code(&mut html, src, None, None, None); expect_file!["fixtures/highlight.html"].assert_eq(&html.into_inner()); }); } @@ -61,7 +61,7 @@ fn test_union_highlighting() { create_default_session_globals_then(|| { let src = include_str!("fixtures/union.rs"); let mut html = Buffer::new(); - write_code(&mut html, src, None, None); + write_code(&mut html, src, None, None, None); expect_file!["fixtures/union.html"].assert_eq(&html.into_inner()); }); } @@ -78,7 +78,7 @@ let a = 4;"; decorations.insert("example2", vec![(22, 32)]); let mut html = Buffer::new(); - write_code(&mut html, src, None, Some(&DecorationInfo(decorations))); + write_code(&mut html, src, None, Some(&DecorationInfo(decorations)), None); expect_file!["fixtures/decorations.html"].assert_eq(&html.into_inner()); }); } |
