Cover structured SIVP front matter and body layout

This commit is contained in:
gloamxun committed 2026-10-20 01:53:47 +08:00
1 parent fcbbbb0ab4
commit 77f672f156
2 files changed
+31 -2

No files matched your search

+29
View File
@@ -1892,6 +1892,35 @@ fn geometry_text_sets_the_text_block() {
);
}
#[test]
fn sivp_frontmatter_survives_the_journal_layout() {
let fixture = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("..")
.join("..")
.join("projects")
.join("_sivp__")
.join("sn-article.tex");
if !fixture.exists() {
return;
}
let source = std::fs::read_to_string(&fixture).expect("read SIVP fixture");
let value = fresh_preview(&source, "sn-article.tex");
assert_eq!(value["status"], "ok");
let first = page_svg(&value, 0);
for needle in ["Wu", "Zhao", "Department", "Abstract", "Keywords"] {
assert!(
first.contains(&format!(">{needle}</text>")),
"SIVP first page should contain {needle}: {}",
&first[..first.len().min(300)]
);
}
let body = page_svg(&value, 2);
assert!(
body.contains(">Vanilla</text>"),
"SIVP body text should be laid out after the title block"
);
}
#[test]
fn sivp_project_previews_and_exports_a_pdf() {
let source = std::fs::read_to_string("projects/_sivp__/sn-article.tex").unwrap();