From 67ac8ef6055eb9bfecf80c70c6a9e9c6150b315b Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Fri, 16 May 2025 14:51:03 -0700 Subject: [PATCH] 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. --- codex-rs/tui/src/markdown.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/markdown.rs b/codex-rs/tui/src/markdown.rs index afe668c0..118eaa59 100644 --- a/codex-rs/tui/src/markdown.rs +++ b/codex-rs/tui/src/markdown.rs @@ -130,12 +130,12 @@ mod tests { #[test] 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 result = rewrite_file_citations(markdown, UriBasedFileOpener::VsCode, cwd); 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 ); }