mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
96e5fc05a3
Pick->Select rename. Integration tests changes.
12 lines
260 B
Rust
12 lines
260 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn drop_rows() {
|
|
let actual = nu!(
|
|
cwd: "tests/fixtures/formats",
|
|
r#"echo '[{"foo": 3}, {"foo": 8}, {"foo": 4}]' | from json | drop 2 | get foo | sum | echo $it"#
|
|
);
|
|
|
|
assert_eq!(actual.out, "3");
|
|
}
|