diff options
| author | Lukas Markeffsky <@> | 2023-05-21 17:03:08 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2023-05-25 13:27:29 +0000 |
| commit | 28ce0b9940f985e32890b8997dd1406705dde55f (patch) | |
| tree | ac813c0d01cd27bc9a0146b4a0f4d0501fc19ab8 | |
| parent | b63cc5c307e515daffae65e344848710d4ce57e2 (diff) | |
| download | rust-28ce0b9940f985e32890b8997dd1406705dde55f.tar.gz rust-28ce0b9940f985e32890b8997dd1406705dde55f.zip | |
rustdoc: add test for strikethrough with single tildes
Also merge the two almost identical strikethrough tests together and document what the test tests.
| -rw-r--r-- | tests/rustdoc/strikethrough-in-summary.rs | 6 | ||||
| -rw-r--r-- | tests/rustdoc/test-strikethrough.rs | 13 |
2 files changed, 10 insertions, 9 deletions
diff --git a/tests/rustdoc/strikethrough-in-summary.rs b/tests/rustdoc/strikethrough-in-summary.rs deleted file mode 100644 index cb6cd0e7ba6..00000000000 --- a/tests/rustdoc/strikethrough-in-summary.rs +++ /dev/null @@ -1,6 +0,0 @@ -#![crate_name = "foo"] - -// @has foo/index.html '//del' 'strike' - -/// ~~strike~~ -pub fn strike() {} diff --git a/tests/rustdoc/test-strikethrough.rs b/tests/rustdoc/test-strikethrough.rs index c7855729a98..58162153b9e 100644 --- a/tests/rustdoc/test-strikethrough.rs +++ b/tests/rustdoc/test-strikethrough.rs @@ -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() {} |
