Update tests.rs

This commit is contained in:
JT 2021-10-03 06:17:51 +13:00 committed by GitHub
parent b5ec9e0360
commit eba3484611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,10 +393,7 @@ fn module_import_uses_internal_command() -> TestResult {
#[test] #[test]
fn hides_def() -> TestResult { fn hides_def() -> TestResult {
fail_test( fail_test(r#"def foo [] { "foo" }; hide foo; foo"#, "not found")
r#"def foo [] { "foo" }; hide foo; foo"#,
"not found",
)
} }
#[test] #[test]
@ -409,10 +406,7 @@ fn hides_def_then_redefines() -> TestResult {
#[test] #[test]
fn hides_def_in_scope_1() -> TestResult { fn hides_def_in_scope_1() -> TestResult {
fail_test( fail_test(r#"def foo [] { "foo" }; do { hide foo; foo }"#, "not found")
r#"def foo [] { "foo" }; do { hide foo; foo }"#,
"not found",
)
} }
#[test] #[test]