Skip to content

Commit 050f1ce

Browse files
committed
test: keep invalid UTF-8 fixture grepable
Signed-off-by: anfedoro <anfedoro@gmail.com>
1 parent efdbdd1 commit 050f1ce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/test_mcp.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,8 +3850,8 @@ TEST(search_code_invalid_utf8_still_returns_valid_json) {
38503850
char invalid_path[512];
38513851
snprintf(invalid_path, sizeof(invalid_path), "%s/project/invalid.md", tmp);
38523852
static const unsigned char invalid_source[] = {
3853-
'i', 'n', 'v', 'a', 'l', 'i', 'd', '-', 'n', 'e', 'e', 'd', 'l', 'e', ' ',
3854-
0xFF, '\n',
3853+
'i', 'n', 'v', 'a', 'l', 'i', 'd', '-', 'n', 'e', 'e', 'd', 'l', 'e', '\n',
3854+
'c', 'o', 'n', 't', 'e', 'x', 't', ' ', 0xFF, '\n',
38553855
};
38563856
FILE *fp = cbm_fopen(invalid_path, "wb");
38573857
ASSERT_NOT_NULL(fp);
@@ -3866,7 +3866,7 @@ TEST(search_code_invalid_utf8_still_returns_valid_json) {
38663866
.qualified_name = "test-project.invalid",
38673867
.file_path = "invalid.md",
38683868
.start_line = 1,
3869-
.end_line = 1};
3869+
.end_line = 2};
38703870
ASSERT_GT(cbm_store_upsert_node(st, &node), 0);
38713871

38723872
char *resp = cbm_mcp_server_handle(

0 commit comments

Comments
 (0)