rustdoc: add test for strikethrough with single tildes

Also merge the two almost identical strikethrough tests together and document what the test tests.
This commit is contained in:
Lukas Markeffsky 2023-05-21 17:03:08 +02:00
parent b63cc5c307
commit 28ce0b9940
2 changed files with 10 additions and 9 deletions

View File

@ -1,6 +0,0 @@
#![crate_name = "foo"]
// @has foo/index.html '//del' 'strike'
/// ~~strike~~
pub fn strike() {}

View File

@ -1,6 +1,13 @@
#![crate_name = "foo"] #![crate_name = "foo"]
// @has foo/fn.f.html // Test that strikethrough works with single and double tildes and that it shows up on
// @has - //del "Y" // the item's dedicated page as well as the parent module's summary of items.
/// ~~Y~~
// @has foo/index.html //del 'strike'
// @has foo/index.html //del 'through'
// @has foo/fn.f.html //del 'strike'
// @has foo/fn.f.html //del 'through'
/// ~~strike~~ ~through~
pub fn f() {} pub fn f() {}