mirror of
https://github.com/nushell/nushell.git
synced 2025-07-03 16:13:20 +02:00
test: +1
This commit is contained in:
@ -143,6 +143,10 @@ fn export_module_which_defined_const() -> TestResult {
|
|||||||
run_test(
|
run_test(
|
||||||
r#"module spam { export const b = 3; export const c = 4 }; use spam; $spam.b + $spam.c"#,
|
r#"module spam { export const b = 3; export const c = 4 }; use spam; $spam.b + $spam.c"#,
|
||||||
"7",
|
"7",
|
||||||
|
)?;
|
||||||
|
fail_test(
|
||||||
|
r#"module spam { export const b = 3; export const c = 4 }; use spam; $b"#,
|
||||||
|
"variable not found",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user