nu-command 0.112.2

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use nu_test_support::prelude::*;

#[test]
fn test_char_list_outputs_table() -> Result {
    test().run("char --list | length").expect_value_eq(113)
}

#[test]
fn test_char_eol() -> Result {
    let code = 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)
    "#;

    test().run(code).expect_value_eq(true)
}