summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/layouting.rs2
-rw-r--r--tests/layouts/align.typ2
-rw-r--r--tests/layouts/coma.typ6
-rw-r--r--tests/layouts/pagebreaks.typ2
-rw-r--r--tests/layouts/styles.typ9
5 files changed, 9 insertions, 12 deletions
diff --git a/tests/layouting.rs b/tests/layouting.rs
index 9a41b790..1a406c8c 100644
--- a/tests/layouting.rs
+++ b/tests/layouting.rs
@@ -141,7 +141,7 @@ fn test(name: &str, src: &str) {
fn preprocess<'a>(src: &'a str) -> (String, Option<Size2D>) {
let include_regex = Regex::new(r"\{include:((.|\.|\-)*)\}").unwrap();
let lorem_regex = Regex::new(r"\{lorem:(\d*)\}").unwrap();
- let size_regex = Regex::new(r"\{(size:(([\d\w]*)\*([\d\w]*)))\}").unwrap();
+ let size_regex = Regex::new(r"\{(size:(([\d\w]*)\sx\s([\d\w]*)))\}").unwrap();
let mut size = None;
diff --git a/tests/layouts/align.typ b/tests/layouts/align.typ
index c971cb41..49365afc 100644
--- a/tests/layouts/align.typ
+++ b/tests/layouts/align.typ
@@ -1,4 +1,4 @@
-{size:150pt*215pt}
+{size:150pt x 215pt}
// ---------------------------------- //
// Without newline in between.
diff --git a/tests/layouts/coma.typ b/tests/layouts/coma.typ
index 83900e03..4adabe0d 100644
--- a/tests/layouts/coma.typ
+++ b/tests/layouts/coma.typ
@@ -1,6 +1,6 @@
-{size:420pt*300pt}
+{size:420pt x 300pt}
-[box: flow=horizontal][
+[box: flow = horizontal][
*Technical University Berlin* [n]
*Faculty II, Institute for Mathematics* [n]
Secretary Example [n]
@@ -17,7 +17,7 @@
*Alle Antworten sind zu beweisen.*
]
-[box: flow=horizontal][
+[box: flow = horizontal][
*1. Aufgabe* [align: right][(1 + 1 + 2 Punkte)]
]
diff --git a/tests/layouts/pagebreaks.typ b/tests/layouts/pagebreaks.typ
index 3644f662..6252ecb9 100644
--- a/tests/layouts/pagebreaks.typ
+++ b/tests/layouts/pagebreaks.typ
@@ -1,4 +1,4 @@
-{size:150pt*200pt}
+{size:150pt x 200pt}
{lorem:100}
[page.break]
diff --git a/tests/layouts/styles.typ b/tests/layouts/styles.typ
index c76feb21..c718ae18 100644
--- a/tests/layouts/styles.typ
+++ b/tests/layouts/styles.typ
@@ -1,4 +1,4 @@
-{size:250pt*500pt}
+{size:250pt x 500pt}
_Emoji:_ Hello World! 🌍
@@ -9,14 +9,11 @@ _Styles with functions:_ This [bold][word] is made bold and [italic][that] itali
using the standard library functions `bold` and `italic`!
[italic]
-Styles can also be changed through [bold] context modification.
+Styles can also be changed through context modification.
This works basically in the same way as the built-in syntax.
_
-This is not italic anymore, but still bold.
-[bold]
-
-This is completely reset. 😀
+This is not italic anymore. 😀
[box][
[italic]