23 lines
501 B
Rust
Raw Permalink Normal View History

2025-06-27 02:33:44 +01:00
use nu_test_support::{nu, pipeline};
#[test]
fn test_char_list_outputs_table() {
let actual = nu!(pipeline(
r#"
char --list | length
"#
));
assert_eq!(actual.out, "113");
}
#[test]
fn test_char_eol() {
let actual = nu!(r#"
let expected = if ($nu.os-info.name == 'windows') { "\r\n" } else { "\n" }
((char lsep) == $expected) and ((char line_sep) == $expected) and ((char eol) == $expected)
"#);
assert_eq!(actual.out, "true");
}