Update tests.rs

Update test errors to be more portable
This commit is contained in:
JT 2021-10-03 06:12:05 +13:00 committed by GitHub
parent 81cd03626d
commit 0cc121876b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,7 +395,7 @@ fn module_import_uses_internal_command() -> TestResult {
fn hides_def() -> TestResult { fn hides_def() -> TestResult {
fail_test( fail_test(
r#"def foo [] { "foo" }; hide foo; foo"#, r#"def foo [] { "foo" }; hide foo; foo"#,
"command not found", "not found",
) )
} }
@ -411,7 +411,7 @@ fn hides_def_then_redefines() -> TestResult {
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 }"#, r#"def foo [] { "foo" }; do { hide foo; foo }"#,
"command not found", "not found",
) )
} }
@ -427,7 +427,7 @@ fn hides_def_in_scope_2() -> TestResult {
fn hides_def_in_scope_3() -> TestResult { fn hides_def_in_scope_3() -> TestResult {
fail_test( fail_test(
r#"def foo [] { "foo" }; do { hide foo; def foo [] { "bar" }; hide foo; foo }"#, r#"def foo [] { "foo" }; do { hide foo; def foo [] { "bar" }; hide foo; foo }"#,
"command not found", "not found",
) )
} }
@ -435,7 +435,7 @@ fn hides_def_in_scope_3() -> TestResult {
fn hides_def_in_scope_4() -> TestResult { fn hides_def_in_scope_4() -> TestResult {
fail_test( fail_test(
r#"def foo [] { "foo" }; do { def foo [] { "bar" }; hide foo; hide foo; foo }"#, r#"def foo [] { "foo" }; do { def foo [] { "bar" }; hide foo; hide foo; foo }"#,
"command not found", "not found",
) )
} }