update tests

This commit is contained in:
WindSoilder 2022-09-03 17:41:57 +08:00
parent af94da4371
commit 6ae94ef513

View File

@ -386,7 +386,7 @@ fn use_def_import_after_hide() -> TestResult {
#[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"#,
r#"module spam { export-env { let-env foo = "foo" } }; overlay use spam; hide-env foo; overlay use spam; $env.foo"#,
"foo",
)
}
@ -419,7 +419,7 @@ fn hides_all_decls_within_scope() -> TestResult {
#[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"#,
r#"module spam { export-env { let-env foo = "bar" } }; let-env foo = "foo"; overlay use spam; hide-env foo; $env.foo"#,
"did you mean",
)
}