From c446cfc7ea47af5f6641e7f1ea16dd09fc9c671b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vid=20Drobni=C4=8D?= Date: Tue, 2 Jul 2024 07:02:59 +0200 Subject: [PATCH] test: improve import tests --- runtime/src/vm/test.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runtime/src/vm/test.rs b/runtime/src/vm/test.rs index bdd7ba9..3bad8fd 100644 --- a/runtime/src/vm/test.rs +++ b/runtime/src/vm/test.rs @@ -788,6 +788,14 @@ fn use_statement() { "#, Object::Integer(138), ), + ( + r#" + constant = 10 + use "src/test_import/constant.aoc" + constant + "#, + Object::Integer(10), + ), ]; for (input, expected) in tests {