summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-08 10:43:03 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-08 10:44:24 +0100
commit1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (patch)
tree682124c2343db9491c84bddbdca026c676f220c6 /tests/src
parent25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff)
Require font to be a named argument
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index eae0126d..a86715ef 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -146,8 +146,8 @@ impl Args {
}
fn library() -> Library {
- /// Category: test
/// Display: Test
+ /// Category: test
#[func]
fn test(args: &mut typst::eval::Args) -> SourceResult<Value> {
let lhs = args.expect::<Value>("left-hand side")?;
@@ -158,8 +158,8 @@ fn library() -> Library {
Ok(Value::None)
}
- /// Category: test
/// Display: Print
+ /// Category: test
#[func]
fn print(args: &mut typst::eval::Args) -> SourceResult<Value> {
print!("> ");