fix: use text other than 'TODO' as test example (#969)
I casually `rg TODO` to look for TODOs, so the use of TODO in a sample string in test output was throwing things off.
This commit is contained in:
@@ -130,12 +130,12 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn citation_followed_by_space_so_they_do_not_run_together() {
|
fn citation_followed_by_space_so_they_do_not_run_together() {
|
||||||
let markdown = "TODOs on lines 【F:src/foo.rs†L24】【F:src/foo.rs†L42】";
|
let markdown = "References on lines 【F:src/foo.rs†L24】【F:src/foo.rs†L42】";
|
||||||
let cwd = Path::new("/home/user/project");
|
let cwd = Path::new("/home/user/project");
|
||||||
let result = rewrite_file_citations(markdown, UriBasedFileOpener::VsCode, cwd);
|
let result = rewrite_file_citations(markdown, UriBasedFileOpener::VsCode, cwd);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
"TODOs on lines [src/foo.rs:24](vscode://file/home/user/project/src/foo.rs:24) [src/foo.rs:42](vscode://file/home/user/project/src/foo.rs:42) ",
|
"References on lines [src/foo.rs:24](vscode://file/home/user/project/src/foo.rs:24) [src/foo.rs:42](vscode://file/home/user/project/src/foo.rs:42) ",
|
||||||
result
|
result
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user