Verify schema 28 format round trips and rejection gates
This commit is contained in:
1 parent
4eeb5686b8
commit
091458d329
4 files changed
+10
-3
No files matched your search
@@ -246,7 +246,7 @@ fn genuine_fraction_primitives_and_retained_boxes_survive_format_roundtrip() {
|
||||
let envelope: serde_json::Value = serde_json::from_slice(&bytes).unwrap();
|
||||
let payload: serde_json::Value =
|
||||
serde_json::from_str(envelope["payload"].as_str().unwrap()).unwrap();
|
||||
assert_eq!(payload["schema"], 27);
|
||||
assert_eq!(payload["schema"], 28);
|
||||
let state = State::initex().with_etex();
|
||||
let loaded = FormatImage::decode(&bytes)
|
||||
.unwrap()
|
||||
|
||||
@@ -334,7 +334,7 @@ fn old_schema_and_missing_unicode_state_are_rejected_even_with_valid_checksums()
|
||||
let envelope: serde_json::Value = serde_json::from_slice(&encoded).unwrap();
|
||||
let original: serde_json::Value =
|
||||
serde_json::from_str(envelope["payload"].as_str().unwrap()).unwrap();
|
||||
assert_eq!(original["schema"], 27);
|
||||
assert_eq!(original["schema"], 28);
|
||||
for (schema, expected) in [
|
||||
(1, "incompatible native format"),
|
||||
(2, "incompatible native format"),
|
||||
@@ -363,6 +363,8 @@ fn old_schema_and_missing_unicode_state_are_rejected_even_with_valid_checksums()
|
||||
(25, "incompatible native format"),
|
||||
(26, "incompatible native format"),
|
||||
(27, "glyph_unicode"),
|
||||
(28, "glyph_unicode"),
|
||||
(29, "incompatible native format"),
|
||||
] {
|
||||
let mut payload = original.clone();
|
||||
payload["schema"] = schema.into();
|
||||
|
||||
@@ -164,7 +164,7 @@ fn new_format_owns_vcenter_and_boxed_math_without_reinjecting_old_meanings() {
|
||||
let envelope: serde_json::Value = serde_json::from_slice(&bytes).unwrap();
|
||||
let payload: serde_json::Value =
|
||||
serde_json::from_str(envelope["payload"].as_str().unwrap()).unwrap();
|
||||
assert_eq!(payload["schema"], 27);
|
||||
assert_eq!(payload["schema"], 28);
|
||||
let executor = FormatImage::decode(&bytes)
|
||||
.unwrap()
|
||||
.new_job(
|
||||
|
||||
@@ -1118,6 +1118,11 @@ aux 都与冻结的 pdfTeX 对照一致。所有页面有左右栏文字,最
|
||||
`aps-original/receipt.json` SHA-256 为
|
||||
`8a5c885e504171e88b6dae499c3403b99ddfe9d2c09b6aff0ef2a14c07ab4c23`。
|
||||
按14份候选源码指纹合入,其中一处调用按 rustfmt 换行。
|
||||
原有分式、vcenter 和 PDF Unicode 三项格式回归已按新写入的
|
||||
schema28 更新。schema 1至26和29仍拒绝,27与28缺少必需 Unicode
|
||||
状态仍拒绝。主工作区三项定向复验通过、零失败,回执
|
||||
`main-format-tests-receipt.json` SHA-256 为
|
||||
`36ee67944b1b63ccb27c0646e80db19b034e898aa88f850abdd1ed720ef65d06`。
|
||||
[原样模板记录](PUBLISHER_TEMPLATE_MATRIX.md#aps-revtex-原样双栏样稿)
|
||||
[pdfTeX 的重音布局](https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/pdftexdir/pdftex.web#L28084-L28143)
|
||||
|
||||
|
||||
Reference in new issue
Block a user