Compile the Huawei E template with tabularx and math vocabulary

This commit is contained in:
gloamxun committed 2026-10-20 00:30:03 +08:00
1 parent 07a4dcdda1
commit 0864536d6d
6 files changed
+49 -10

No files matched your search

+17
View File
@@ -1837,3 +1837,20 @@ See \eqref{eq:x}. $\bar{x}+\vec{v}$.
let value = fresh_preview(source, "eqref-accents.tex");
assert_eq!(value["status"], "ok");
}
#[test]
fn sivp_project_exports_a_pdf() {
let source = std::fs::read_to_string("projects/_sivp__/sn-article.tex").unwrap();
let pdf = CompilerSession::default()
.compile(&source, "projects/_sivp__/sn-article.tex")
.expect("SIVP PDF");
assert!(pdf.starts_with(b"%PDF-"));
assert!(pdf.len() > 100_000, "SIVP PDF too small: {}", pdf.len());
}
#[test]
fn e_fixture_compiles() {
let source = std::fs::read_to_string("projects/e/问题一.tex").unwrap();
let value = fresh_preview(&source, "projects/e/问题一.tex");
assert_eq!(value["status"], "ok");
}