2022-02-04 03:01:45 +01:00
|
|
|
use nu_test_support::{nu, pipeline};
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn adds_a_row_to_the_end() {
|
2023-04-07 23:09:55 +02:00
|
|
|
let actual = nu!(pipeline(
|
2022-02-04 03:01:45 +01:00
|
|
|
r#"
|
2023-03-15 06:54:55 +01:00
|
|
|
echo [ "Andrés N. Robalino", "JT Turner", "Yehuda Katz" ]
|
2022-02-04 03:01:45 +01:00
|
|
|
| append "pollo loco"
|
2022-02-09 11:58:54 +01:00
|
|
|
| get 3
|
2022-02-04 03:01:45 +01:00
|
|
|
"#
|
|
|
|
));
|
|
|
|
|
|
|
|
assert_eq!(actual.out, "pollo loco");
|
2019-12-15 17:15:06 +01:00
|
|
|
}
|