Add rustdoc test for double-hyphen to dash doc comment conversion
This commit is contained in:
parent
fabf929863
commit
653f9c7f28
9
tests/rustdoc/double-hyphen-to-dash.rs
Normal file
9
tests/rustdoc/double-hyphen-to-dash.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// This test ensures that `--` (double-hyphen) is correctly converted into `–` (dash).
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
// @has 'foo/index.html' '//*[@class="desc docblock-short"]' '–'
|
||||
// @has 'foo/struct.Bar.html' '//*[@class="docblock"]' '–'
|
||||
|
||||
/// --
|
||||
pub struct Bar;
|
Loading…
Reference in New Issue
Block a user