From 7c09b62f7e6a2e07dccff2999db5570f93b0bba8 Mon Sep 17 00:00:00 2001 From: Ryder Date: Sat, 30 Mar 2024 18:58:25 -0700 Subject: [PATCH] Fix incorrect length expectation in test_code This commit corrects the expected length of the code snippet in the test_code function from 19 to 18. The previous length expectation of 19 did not accurately reflect the number of characters in the given code snippet, leading to test failures. The adjustment ensures that the test accurately tests for the correct length of the code snippet, addressing the issue where the test would fail due to an off-by-one error in the length expectation. --- src/modules/chat/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/chat/markdown.rs b/src/modules/chat/markdown.rs index 6763c7d..4cc1216 100644 --- a/src/modules/chat/markdown.rs +++ b/src/modules/chat/markdown.rs @@ -444,7 +444,7 @@ End"#; language: Some(ref lang) }, offset: 25, - length: 19 + length: 18 } if lang == "c" )); }