fix(render): the Mac OS Roman reading test covers ZapfDingbats and a /Differences naming .notdef (hayro-interpret patch 101)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
This commit is contained in:
mtlcl410andClaude Opus 5.5 committed 2026-11-08 12:35:53 +08:00
1 parent 15bc6159d1
commit 11c7a02762
1 file changed
+6
+6
View File
@@ -927,4 +927,10 @@ fn the_mac_roman_reading_needs_no_base_encoding_and_no_symbolic_builtin() {
diffs.set(b"Differences".to_vec(), Object::Array(vec![Object::Int(0x8E), Object::name("ecircumflex")]));
assert_eq!(read(vec![("Encoding", Object::Dict(diffs))]), ["à", "ê"], "/Differences without a base encoding");
assert_eq!(read(vec![("BaseFont", Object::name("Symbol"))]), ["", ""], "Symbol");
assert_eq!(read(vec![("BaseFont", Object::name("ZapfDingbats"))]), ["", ""], "ZapfDingbats");
// A name it can't read clears the Mac OS Roman reading for its code, as it clears a base
// encoding's.
let mut notdef = Dict::new();
notdef.set(b"Differences".to_vec(), Object::Array(vec![Object::Int(0x8E), Object::name(".notdef")]));
assert_eq!(read(vec![("Encoding", Object::Dict(notdef))]), ["à", ""], "/Differences naming .notdef");
}