nu-command 0.112.1

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

#[test]
fn adds_a_row_to_the_beginning() -> Result {
    let input = ["Andrés N. Robalino", "JT Turner", "Yehuda Katz"];
    let code = r#"$in | prepend "pollo loco" | get 0"#;
    test()
        .run_with_data(code, input)
        .expect_value_eq("pollo loco")
}