summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/tests.rs12
-rw-r--r--tests/typ/layout/par.typ1
-rw-r--r--tests/typ/math/matrix.typ6
-rw-r--r--tests/typ/math/style.typ4
4 files changed, 13 insertions, 10 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index 16dea380..ac3e4d85 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -186,10 +186,14 @@ fn library() -> Library {
lib.styles.set(TextNode::SIZE, TextSize(Abs::pt(10.0).into()));
// Hook up helpers into the global scope.
- lib.scope.def_func::<TestFunc>("test");
- lib.scope.def_func::<PrintFunc>("print");
- lib.scope.define("conifer", RgbaColor::new(0x9f, 0xEB, 0x52, 0xFF));
- lib.scope.define("forest", RgbaColor::new(0x43, 0xA1, 0x27, 0xFF));
+ lib.global.scope_mut().def_func::<TestFunc>("test");
+ lib.global.scope_mut().def_func::<PrintFunc>("print");
+ lib.global
+ .scope_mut()
+ .define("conifer", RgbaColor::new(0x9f, 0xEB, 0x52, 0xFF));
+ lib.global
+ .scope_mut()
+ .define("forest", RgbaColor::new(0x43, 0xA1, 0x27, 0xFF));
lib
}
diff --git a/tests/typ/layout/par.typ b/tests/typ/layout/par.typ
index aabe63ef..264209b8 100644
--- a/tests/typ/layout/par.typ
+++ b/tests/typ/layout/par.typ
@@ -25,7 +25,6 @@ Hello
// While we're at it, test the larger block spacing wins.
#set block(spacing: 0pt)
#show raw: set block(spacing: 15pt)
-#show math: set block(spacing: 7.5pt)
#show list: set block(spacing: 2.5pt)
```rust
diff --git a/tests/typ/math/matrix.typ b/tests/typ/math/matrix.typ
index 3d67800d..aa99bb1b 100644
--- a/tests/typ/math/matrix.typ
+++ b/tests/typ/math/matrix.typ
@@ -7,7 +7,7 @@ $ v = vec(1, 2+3, 4) $
$ binom(n, 1) = 1/2 n (n-1) $
---
-#set vec(delim: "|")
+#set math.vec(delim: "|")
$ vec(1, 2) $
---
@@ -19,8 +19,8 @@ $ f(x, y) := cases(
) $
---
-// Error: 17-20 expected "(", "[", "{", or "|"
-#set vec(delim: "%")
+// Error: 22-25 expected "(", "[", "{", "|", or "||"
+#set math.vec(delim: "%")
---
// Error: 9-12 missing argument: lower index
diff --git a/tests/typ/math/style.typ b/tests/typ/math/style.typ
index e249a45a..a8b9c7a5 100644
--- a/tests/typ/math/style.typ
+++ b/tests/typ/math/style.typ
@@ -1,6 +1,6 @@
#let part = $ a b A B $
-#let kinds = (serif, sans, cal, frak, mono, bb)
-#let modifiers = (v => v, italic, bold, v => italic(bold(v)))
+#let kinds = (math.serif, math.sans, math.cal, math.frak, math.mono, math.bb)
+#let modifiers = (v => v, math.italic, math.bold, v => math.italic(math.bold(v)))
#let cells = ([:triangle:nested:], [--], [`italic`], [`bold`], [both])
#for k in kinds {