Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Chore:Fixed Cl cargo test -p pdfcraft-automation

Combiler012f53d0f0e29c
diff --git a/crates/automation/tests/automation.rs b/crates/automation/tests/automation.rs
index 1ebb8cc2d..818747898 100644
--- a/crates/automation/tests/automation.rs
+++ b/crates/automation/tests/automation.rs
@@ -716,12 +716,11 @@ fn an_in_place_save_reports_a_required_rewrite_as_not_incremental() {
#[test]
fn a_recovered_page_tree_survives_a_full_save() {
let dir = workdir("save-verify-before-write");
- let objs: [&[u8]; 5] = [
+ let objs: [&[u8]; 4] = [
b"<< /Type /Catalog /Pages 3 0 R >>",
b"<< /Type /Page /MediaBox [0 0 200 300] /Contents 4 0 R >>",
b"[ 0 ]",
b"<< /Length 18 >>\nstream\n0 0 m 100 100 l S\nendstream",
- b"<< /Type /Page /MediaBox [0 0 200 200] >>",
];
let mut original = b"%PDF-1.7\n".to_vec();
let mut offsets = Vec::new();