Add test for removed one character last line in rustdoc
This commit is contained in:
parent
e8f1d57d80
commit
aa6f6f47cd
7
src/test/rustdoc/include_str_cut.rs
Normal file
7
src/test/rustdoc/include_str_cut.rs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#![crate_name = "foo"]
|
||||||
|
#![no_std]
|
||||||
|
|
||||||
|
// @has 'foo/fn.foo.html'
|
||||||
|
// @has - '//*[@class="docblock"]' 'inc2 x'
|
||||||
|
#[doc = include_str!("short-line.md")]
|
||||||
|
pub fn foo() {}
|
2
src/test/rustdoc/short-line.md
Normal file
2
src/test/rustdoc/short-line.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
inc2
|
||||||
|
x
|
Loading…
Reference in New Issue
Block a user