mirror of
https://github.com/nushell/nushell.git
synced 2024-11-30 12:24:03 +01:00
4f367a59de
* Strip trailing whitespace in rs files * Strip trailing whitespace in toml files * Strip trailing whitespace in md files * Strip trailing whitespace in nu files
16 lines
345 B
Rust
16 lines
345 B
Rust
use nu_test_support::{nu, pipeline};
|
|
|
|
#[test]
|
|
fn adds_a_row_to_the_end() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
echo [ "Andrés N. Robalino", "Jonathan Turner", "Yehuda Katz" ]
|
|
| append "pollo loco"
|
|
| get 3
|
|
"#
|
|
));
|
|
|
|
assert_eq!(actual.out, "pollo loco");
|
|
}
|