Fix failing test when using man version 2.13.0 (#15123)

The test added in #15115 fails on systems using later versions of `man`
(2.13.0 triggers the issue, at least). This updates the test to ignore
formatting characters.

Thanks to @fdncred and @blindFS for the debugging assistance.
This commit is contained in:
Douglas 2025-02-15 18:55:33 -05:00 committed by GitHub
parent 2cb059146b
commit 2b8fb4fe00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1025,7 +1025,7 @@ mod tests {
.to_string();
#[cfg(not(windows))]
assert!(hover_text.starts_with("SLEEP(1)"));
assert!(hover_text.contains("SLEEP"));
#[cfg(windows)]
assert!(hover_text.starts_with("NAME\r\n Start-Sleep"));
}