mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
16 lines
313 B
Rust
16 lines
313 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn test_ansi_shows_error_on_escape() {
|
|
let actual = nu!(r"ansi --escape \");
|
|
|
|
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");
|
|
}
|