From e3ae9e48a6b30995afb2ec82b82b0d1815951d83 Mon Sep 17 00:00:00 2001 From: blindfs Date: Mon, 7 Apr 2025 21:09:38 +0800 Subject: [PATCH] test: +1 --- tests/repl/test_modules.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/repl/test_modules.rs b/tests/repl/test_modules.rs index 9ededf8f73..813afd9f43 100644 --- a/tests/repl/test_modules.rs +++ b/tests/repl/test_modules.rs @@ -143,6 +143,10 @@ fn export_module_which_defined_const() -> TestResult { run_test( r#"module spam { export const b = 3; export const c = 4 }; use spam; $spam.b + $spam.c"#, "7", + )?; + fail_test( + r#"module spam { export const b = 3; export const c = 4 }; use spam; $b"#, + "variable not found", ) }