Cover route-D list PDF export

This commit is contained in:
gloamxun committed 2026-10-20 22:06:24 +08:00
1 parent ccda740476
commit fcfb7ec764
2 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -262,7 +262,7 @@ M3 (partial): `Unit::halign` normalizes column widths, intercolumn gaps, row hei
Math coverage includes fractions/roots, scripts, `\left...\right` with body-scaled delimiters, `\middle`, `\big`/`\Big`/`\bigg`/`\Bigg` and their `l`/`r` forms, control-sequence delimiters, accents (dot/check/breve/acute/grave/ring), `\text`/`\mathrm`, `\overbrace`/`\underbrace`, `\overset`/`\underset`, `\binom`, `\cancel`/`\bcancel`/`\xcancel`, `\bmod`/`\pmod`, fence symbols, `\operatorname*` and `\mathop` limits.
The crate currently has 138 unit tests plus one route-D integration test. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 229 tests (138 route-D unit, 1 route-D integration, 71 v1 integration, 14 server, 4 v1 unit, 1 doctest). v1 remains the live server path.
The crate currently has 138 unit tests plus one route-D integration test. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 230 tests (138 route-D unit, 1 route-D integration, 71 v1 integration, 15 server, 4 v1 unit, 1 doctest). v1 remains the live server path.
### M0 incremental demo
+14
View File
@@ -489,6 +489,20 @@ fn route_d_renders_quote_blocks() {
assert!(svg.contains(">Q</text>"));
}
#[test]
fn route_d_pdf_renders_itemize_content() {
let server = TestServer::start("route-d-pdf-list");
let response = server.request(
"POST",
"/api/route-d/pdf",
b"\\begin{itemize}\\item Alpha\\item Beta\\end{itemize}",
"text/plain",
);
assert_eq!(response.status, 200, "{}", response.text());
assert!(response.body.starts_with(b"%PDF-"));
assert!(response.body.len() > 500);
}
#[test]
fn edits_route_d_preview_pages() {
let server = TestServer::start("route-d-edit");