From b24bac7cae6283a4f29bdba844d6ba56831fd1bb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 31 Mar 2019 17:18:59 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20with=20special=20characters=20?= =?UTF-8?q?=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b9992b427..65955d487 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -174,9 +174,7 @@ mod test { #[test] fn small() { - test("unicode", "∑mbe∂∂ed font with Unicode!"); test("parentheses", "Text with ) and ( or (enclosed) works."); - test("composite-glyph", "Composite character‼"); test("multiline"," Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam @@ -186,7 +184,17 @@ mod test { } #[test] - fn long_styled() { + fn unicode() { + test("unicode", "∑mbe∂∂ed font with Unicode!"); + } + + #[test] + fn composite_glyph() { + test("composite-glyph", "Composite character‼"); + } + + #[test] + fn long_wikipedia() { test("wikipedia", r#" Typesetting is the composition of text by means of arranging physical types or the digital equivalents. Stored letters and other symbols (called sorts in mechanical