feat(stdlib): add table GFM rendering and an HTTP/1.1 parser fixture
- stdlib/data/table.mq.md adds 连接片段/连接行/转义单元格/转GFM; logical Table renders as a GFM pipe table with pipe/newline escaping (CM-A08 P4 gate). - Add semantic fixture 71: HTTP/1.1 status/header/chunked response parsing and request construction in .mq.md; no host HTTP/TLS implementation (C10). - Update table CLI test, golden count 71, specs/status/README/changelog and evidence. Gate: fmt, clippy -D warnings, 426 tests passed; bundle digest refreshed.
This commit is contained in:
1 parent
67a6d35daf
commit
69a28ed1e1
12 files changed
+492
-9
No files matched your search
@@ -37,7 +37,7 @@ fn stdlib_table_algorithms_rebuild_without_mutating_inputs() {
|
||||
let report = run_table_self_test();
|
||||
assert_eq!(report["success"], true);
|
||||
let items = report["value"]["items"].as_array().expect("list");
|
||||
assert_eq!(items.len(), 8);
|
||||
assert_eq!(items.len(), 9);
|
||||
|
||||
assert_eq!(items[0]["header"], serde_json::json!(["分数"]));
|
||||
assert_eq!(items[0]["rows"].as_array().unwrap().len(), 3);
|
||||
@@ -64,4 +64,9 @@ fn stdlib_table_algorithms_rebuild_without_mutating_inputs() {
|
||||
// Original input is unchanged.
|
||||
assert_eq!(rows(&items[7]).len(), 3);
|
||||
assert_eq!(rows(&items[7])[0][1]["decimal"], "87");
|
||||
|
||||
assert_eq!(
|
||||
items[8]["value"],
|
||||
"| 名称 | 分数 |\n| --- | --- |\n| 甲 | 87 |\n| 乙 | 92 |\n| 丙 | 71 |"
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user