mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix bug with special characters 🚧
This commit is contained in:
parent
a522a15a66
commit
b24bac7cae
14
src/lib.rs
14
src/lib.rs
@ -174,9 +174,7 @@ mod test {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn small() {
|
fn small() {
|
||||||
test("unicode", "∑mbe∂∂ed font with Unicode!");
|
|
||||||
test("parentheses", "Text with ) and ( or (enclosed) works.");
|
test("parentheses", "Text with ) and ( or (enclosed) works.");
|
||||||
test("composite-glyph", "Composite character‼");
|
|
||||||
test("multiline","
|
test("multiline","
|
||||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
|
||||||
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
||||||
@ -186,7 +184,17 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[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#"
|
test("wikipedia", r#"
|
||||||
Typesetting is the composition of text by means of arranging physical types or the
|
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
|
digital equivalents. Stored letters and other symbols (called sorts in mechanical
|
||||||
|
Loading…
x
Reference in New Issue
Block a user