diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-23 15:03:10 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-23 15:23:52 +0100 |
| commit | 4653ffebb43d733a3cff873d0903c7d00aaeb499 (patch) | |
| tree | 6a97b2e6a6903b3198547d6f3d0a7e3d2eb023cd /tests/src | |
| parent | 84c6c8b0e6b17996a603ec88b7490107154f38f3 (diff) | |
Math module
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/tests.rs | 12 |
1 files changed, 8 insertions, 4 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 } |
