Fix it expansion and add collect (#2065)

This commit is contained in:
Jonathan Turner
2020-06-27 17:38:19 +12:00
committed by GitHub
parent 05781607f4
commit 4e2a4236f8
7 changed files with 133 additions and 34 deletions

View File

@@ -72,6 +72,18 @@ fn it_expansion_of_list() {
assert_eq!(actual.out, "[\"bar\",\"foo\"]");
}
#[test]
fn it_expansion_of_invocation() {
let actual = nu!(
cwd: ".",
r#"
echo $(echo "4" | echo $it | str to-int )
"#
);
assert_eq!(actual.out, "4");
}
#[test]
fn argument_invocation() {
let actual = nu!(