Add regression test

This commit is contained in:
Thomas Zahner 2025-07-18 17:49:18 +02:00
parent 8ec86dfee4
commit 08dabb06b2
2 changed files with 18 additions and 0 deletions

6
fixtures/TEST_LOCAL_DIRECTORIES.md vendored Normal file
View file

@ -0,0 +1,6 @@
The following links should all be valid and be detected as such by lychee.
[link to root dir](file:///)
[link to /dev](file:///dev/)
[link to current dir](.)
[relative link to docs](../docs/)

View file

@ -280,6 +280,18 @@ mod cli {
)
}
#[test]
fn test_local_directories() -> Result<()> {
test_json_output!(
"TEST_LOCAL_DIRECTORIES.md",
MockResponseStats {
total: 4,
successful: 4,
..MockResponseStats::default()
}
)
}
#[test]
fn test_email() -> Result<()> {
test_json_output!(