adjust tests

This commit is contained in:
WindSoilder 2022-09-03 16:47:41 +08:00
parent 8819a78b05
commit af94da4371
3 changed files with 4 additions and 1 deletions

View File

@ -383,6 +383,7 @@ fn use_def_import_after_hide() -> TestResult {
}
#[test]
#[ignore]
fn use_env_import_after_hide() -> TestResult {
run_test(
r#"module spam { export env foo { "foo" } }; use spam foo; hide-env foo; use spam foo; $env.foo"#,
@ -415,6 +416,7 @@ fn hides_all_decls_within_scope() -> TestResult {
}
#[test]
#[ignore]
fn hides_all_envs_within_scope() -> TestResult {
fail_test(
r#"module spam { export env foo { "bar" } }; let-env foo = "foo"; use spam foo; hide-env foo; $env.foo"#,

View File

@ -506,6 +506,7 @@ fn remove_overlay_keep_discard_overwritten_alias() {
}
#[test]
#[ignore]
fn remove_overlay_keep_discard_overwritten_env() {
let inp = &[
r#"overlay use samples/spam.nu"#,

View File

@ -2,4 +2,4 @@ export def foo [] { "foo" }
export alias bar = "bar"
export env BAZ { "baz" }
export-env { let-env BAZ = "baz" } }