mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
Update tests.rs
This commit is contained in:
parent
b5ec9e0360
commit
eba3484611
1 changed files with 2 additions and 8 deletions
10
src/tests.rs
10
src/tests.rs
|
@ -393,10 +393,7 @@ fn module_import_uses_internal_command() -> TestResult {
|
|||
|
||||
#[test]
|
||||
fn hides_def() -> TestResult {
|
||||
fail_test(
|
||||
r#"def foo [] { "foo" }; hide foo; foo"#,
|
||||
"not found",
|
||||
)
|
||||
fail_test(r#"def foo [] { "foo" }; hide foo; foo"#, "not found")
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -409,10 +406,7 @@ fn hides_def_then_redefines() -> TestResult {
|
|||
|
||||
#[test]
|
||||
fn hides_def_in_scope_1() -> TestResult {
|
||||
fail_test(
|
||||
r#"def foo [] { "foo" }; do { hide foo; foo }"#,
|
||||
"not found",
|
||||
)
|
||||
fail_test(r#"def foo [] { "foo" }; do { hide foo; foo }"#, "not found")
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue