1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-26 07:19:55 +01:00
nushell/crates/nu-cli/tests/commands/nu_highlight.rs
Ian Manske 1b2e680059
Fix syntax highlighting for not ()
# Description
Fixes  where a panic occurs when syntax highlighting `not`. Also
fixes  where syntax highlighting for `not` no longer works.

# User-Facing Changes
Bug fix.
2024-05-10 07:09:44 +08:00

8 lines
171 B
Rust

use nu_test_support::nu;
#[test]
fn nu_highlight_not_expr() {
let actual = nu!("'not false' | nu-highlight | ansi strip");
assert_eq!(actual.out, "not false");
}