diff --git a/crates/nu-utils/standard_library/test_logger.nu b/crates/nu-utils/standard_library/test_logger.nu index c338ecb026..65bffca081 100644 --- a/crates/nu-utils/standard_library/test_logger.nu +++ b/crates/nu-utils/standard_library/test_logger.nu @@ -19,11 +19,11 @@ def "assert message" [system_level, message_level, message_level_str] { export def test_critical [] { assert no message 99 critical - assert message 100 critical CRIT + assert message CRITICAL critical CRIT } export def test_error [] { assert no message CRITICAL error - assert message 100 error ERROR + assert message ERROR error ERROR } export def test_warning [] { assert no message ERROR warning @@ -35,5 +35,5 @@ export def test_info [] { } export def test_debug [] { assert no message INFO debug - assert message 100 debug DEBUG + assert message DEBUG debug DEBUG } diff --git a/crates/nu-utils/standard_library/test_std.nu b/crates/nu-utils/standard_library/test_std.nu index 72070fcd6e..1c5c2d4e38 100644 --- a/crates/nu-utils/standard_library/test_std.nu +++ b/crates/nu-utils/standard_library/test_std.nu @@ -18,7 +18,7 @@ export def test_assert [] { test_failing { std assert eq 1 "foo" } test_failing { std assert eq (1 + 2) 4) } - std assert ne (1 + 2) 3 + std assert ne (1 + 2) 4 std assert ne 1 "foo" std assert ne (1 + 2) 3) } @@ -58,7 +58,7 @@ export def test_path_add [] { std path add "bar" "baz" --append assert eq $env.PATH ["foo", "bar", "baz"] - assert eq (std path add "fooooo" --ret) ["foooo", "foo", "bar", "baz"] + assert eq (std path add "fooooo" --ret) ["fooooo", "foo", "bar", "baz"] assert eq $env.PATH ["fooooo", "foo", "bar", "baz"] } }