From 4653ffebb43d733a3cff873d0903c7d00aaeb499 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 23 Jan 2023 15:03:10 +0100 Subject: Math module --- tests/src/tests.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/src/tests.rs') 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::("test"); - lib.scope.def_func::("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::("test"); + lib.global.scope_mut().def_func::("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 } -- cgit v1.2.3