2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-30 22:03:35 +00: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

7 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");
}