mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
introduce failing tests to see the CI failing
This commit introduces a bug in: - `test_logger::test_criticalansireset` - `test_logger::test_debugansireset` - `test_logger::test_erroransireset` - `test_std::test_assertansireset` - `test_std::test_path_addansireset`
This commit is contained in:
parent
1b7497c419
commit
799c7eb7fd
2 changed files with 5 additions and 5 deletions
|
@ -19,11 +19,11 @@ def "assert message" [system_level, message_level, message_level_str] {
|
||||||
|
|
||||||
export def test_critical [] {
|
export def test_critical [] {
|
||||||
assert no message 99 critical
|
assert no message 99 critical
|
||||||
assert message CRITICAL critical CRIT
|
assert message 100 critical CRIT
|
||||||
}
|
}
|
||||||
export def test_error [] {
|
export def test_error [] {
|
||||||
assert no message CRITICAL error
|
assert no message CRITICAL error
|
||||||
assert message ERROR error ERROR
|
assert message 100 error ERROR
|
||||||
}
|
}
|
||||||
export def test_warning [] {
|
export def test_warning [] {
|
||||||
assert no message ERROR warning
|
assert no message ERROR warning
|
||||||
|
@ -35,5 +35,5 @@ export def test_info [] {
|
||||||
}
|
}
|
||||||
export def test_debug [] {
|
export def test_debug [] {
|
||||||
assert no message INFO debug
|
assert no message INFO debug
|
||||||
assert message DEBUG debug DEBUG
|
assert message 100 debug DEBUG
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ export def test_assert [] {
|
||||||
test_failing { std assert eq 1 "foo" }
|
test_failing { std assert eq 1 "foo" }
|
||||||
test_failing { std assert eq (1 + 2) 4) }
|
test_failing { std assert eq (1 + 2) 4) }
|
||||||
|
|
||||||
std assert ne (1 + 2) 4
|
std assert ne (1 + 2) 3
|
||||||
std assert ne 1 "foo"
|
std assert ne 1 "foo"
|
||||||
std assert ne (1 + 2) 3)
|
std assert ne (1 + 2) 3)
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ export def test_path_add [] {
|
||||||
std path add "bar" "baz" --append
|
std path add "bar" "baz" --append
|
||||||
assert eq $env.PATH ["foo", "bar", "baz"]
|
assert eq $env.PATH ["foo", "bar", "baz"]
|
||||||
|
|
||||||
assert eq (std path add "fooooo" --ret) ["fooooo", "foo", "bar", "baz"]
|
assert eq (std path add "fooooo" --ret) ["foooo", "foo", "bar", "baz"]
|
||||||
assert eq $env.PATH ["fooooo", "foo", "bar", "baz"]
|
assert eq $env.PATH ["fooooo", "foo", "bar", "baz"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue