mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 18:33:50 +01:00
7d6b23ee2f
Inspired by https://rust-lang.github.io/rust-clippy/master/index.html#/needless_raw_string_hashes Ran `cargo +stable clippy --workspace --all-targets` Fixed manually as I ran into a false positive along the lines of: https://github.com/rust-lang/rust-clippy/issues/11068 Also collapse one set of single line tests. Work for #8670
16 lines
307 B
Rust
16 lines
307 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn test_ansi_shows_error_on_escape() {
|
|
let actual = nu!(r"ansi -e \");
|
|
|
|
assert!(actual.err.contains("no need for escape characters"))
|
|
}
|
|
|
|
#[test]
|
|
fn test_ansi_list_outputs_table() {
|
|
let actual = nu!("ansi --list | length");
|
|
|
|
assert_eq!(actual.out, "424");
|
|
}
|