Skip to content

Commit d751b0b

Browse files
committed
Extend a test case
1 parent d510174 commit d751b0b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/content.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,7 @@ mod tests {
17451745
let mut content = Content::new_with(WriteSettings { pretty: false });
17461746

17471747
content.set_font(Name(b"F1"), 12.0);
1748+
content.set_font(Name(b"F2"), 15.0);
17481749
content.begin_text();
17491750
content.show_positioned().items();
17501751
content
@@ -1759,7 +1760,7 @@ mod tests {
17591760

17601761
assert_eq!(
17611762
content.finish().into_vec(),
1762-
b"/F1 12 Tf\nBT\n[]TJ\n[(AB)2(CD)4(EF)]TJ\nET"
1763+
b"/F1 12 Tf\n/F2 15 Tf\nBT\n[]TJ\n[(AB)2(CD)4(EF)]TJ\nET"
17631764
);
17641765
}
17651766
#[test]

0 commit comments

Comments
 (0)