Skip to content

Commit

Permalink
rustdoc: add test for strikethrough with single tildes
Browse files Browse the repository at this point in the history
Also merge the two almost identical strikethrough tests together and document what the test tests.
  • Loading branch information
Lukas Markeffsky committed May 25, 2023
1 parent b63cc5c commit 28ce0b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 0 additions & 6 deletions tests/rustdoc/strikethrough-in-summary.rs

This file was deleted.

13 changes: 10 additions & 3 deletions tests/rustdoc/test-strikethrough.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#![crate_name = "foo"]

// @has foo/fn.f.html
// @has - //del "Y"
/// ~~Y~~
// Test that strikethrough works with single and double tildes and that it shows up on
// the item's dedicated page as well as the parent module's summary of items.

// @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() {}

0 comments on commit 28ce0b9

Please sign in to comment.