From 0cc121876b3b1a0e8f71941d74a6d50323cb5447 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Sun, 3 Oct 2021 06:12:05 +1300 Subject: [PATCH] Update tests.rs Update test errors to be more portable --- src/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 844df53c35..5436f16b84 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -395,7 +395,7 @@ fn module_import_uses_internal_command() -> TestResult { fn hides_def() -> TestResult { fail_test( 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 { fail_test( 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 { fail_test( 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 { fail_test( r#"def foo [] { "foo" }; do { def foo [] { "bar" }; hide foo; hide foo; foo }"#, - "command not found", + "not found", ) }