test: mcp unknown-block text keeps key order (serde_json preserve_order via leleka-harmony)
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-typecheck (push) Failing after 9s
Rust port / port-oracles (push) Failing after 10s
Rust port / port-linux-tests (push) Failing after 15s
Rust port / port-fast (push) Failing after 9s
Linux / verify (push) Failing after 18s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-27 08:36:02 +01:00
co-authored by Claude Sonnet 5.5
parent b3274c1130
commit 3bedec6107
+2 -1
View File
@@ -1425,6 +1425,7 @@ mod tests {
#[test]
fn results_read_as_text_with_other_blocks_named() {
// serde_json keeps object key order (`preserve_order`, enabled by leleka-harmony), so an unknown block prints as written.
let result = json!({"content": [
{"type": "text", "text": "hello"},
{"type": "resource", "resource": {"uri": "file:///a", "mimeType": "image/png"}},
@@ -1436,7 +1437,7 @@ mod tests {
]});
assert_eq!(
result_text(&result),
"hello\n[resource file:///a (image/png), not shown]\ninline\n[resource link: doc http://x]\n[image (image/png, 6 bytes): not shown to the model]\n{\"k\":1,\"type\":\"weird\"}"
"hello\n[resource file:///a (image/png), not shown]\ninline\n[resource link: doc http://x]\n[image (image/png, 6 bytes): not shown to the model]\n{\"type\":\"weird\",\"k\":1}"
);
assert_eq!(
result_text(&json!({"structuredContent": {"a": 1}})),