Skip to content

Commit bf6a1b1

Browse files
committed
Add test for broken_intra_doc_link.
1 parent 51f20b4 commit bf6a1b1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
[<code>std::ffi::CString</code>]
4+
</body>
5+
</html>

src/tools/linkchecker/tests/checks.rs

+8
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,11 @@ fn redirect_loop() {
111111
which is also a redirect (not supported)",
112112
);
113113
}
114+
115+
#[test]
116+
fn broken_intra_doc_link() {
117+
broken_test(
118+
"broken_intra_doc_link",
119+
"foo.html:3: broken intra-doc link - [<code>std::ffi::CString</code>]",
120+
);
121+
}

0 commit comments

Comments
 (0)