Skip to content

Commit 6fb222c

Browse files
committed
fix(test): mcp_version to match *.*.*
1 parent b3e09e3 commit 6fb222c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/main.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ int test_mcp_version(sqlite3 *db) {
9292
return 1;
9393
}
9494

95-
// Check if version matches expected format (e.g., "0.1.0")
96-
if (strcmp((const char *)version, "0.1.0") != 0) {
97-
fprintf(stderr, " Unexpected version: %s\n", version);
95+
// Check if version matches format X.Y.Z
96+
int major, minor, patch;
97+
if (sscanf((const char *)version, "%d.%d.%d", &major, &minor, &patch) != 3) {
98+
fprintf(stderr, " Invalid version format: %s (expected X.Y.Z)\n", version);
9899
sqlite3_finalize(stmt);
99100
return 1;
100101
}

0 commit comments

Comments
 (0)