From 305524d005df075d53575552ee090fb53192a3fe Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 11 Sep 2023 14:42:43 +0200 Subject: Update tests for type system changes --- tests/src/tests.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/src/tests.rs') diff --git a/tests/src/tests.rs b/tests/src/tests.rs index fee6f2b7..b575b4d4 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -151,8 +151,6 @@ fn main() { } fn library() -> Library { - /// Display: Test - /// Category: test #[func] fn test(lhs: Value, rhs: Value) -> StrResult { if lhs != rhs { @@ -161,8 +159,6 @@ fn library() -> Library { Ok(NoneValue) } - /// Display: Print - /// Category: test #[func] fn print(#[variadic] values: Vec) -> NoneValue { let mut stdout = io::stdout().lock(); @@ -191,8 +187,8 @@ fn library() -> Library { lib.styles.set(TextElem::set_size(TextSize(Abs::pt(10.0).into()))); // Hook up helpers into the global scope. - lib.global.scope_mut().define("test", test_func()); - lib.global.scope_mut().define("print", print_func()); + lib.global.scope_mut().define_func::(); + lib.global.scope_mut().define_func::(); lib.global .scope_mut() .define("conifer", RgbaColor::new(0x9f, 0xEB, 0x52, 0xFF)); -- cgit v1.2.3