mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
Use iterator chain instead of string concat. (#2655)
* Use iterator chain instead of string concat * Add regression test for multi-value lines
This commit is contained in:
@ -34,3 +34,18 @@ fn lines_proper_buffering() {
|
||||
|
||||
assert_eq!(actual.out, "[8194,4]");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn lines_multi_value_split() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample-simple.json
|
||||
| get first second
|
||||
| lines
|
||||
| count
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "6");
|
||||
}
|
||||
|
Reference in New Issue
Block a user