mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 16:58:51 +02:00
Fix it expansion and add collect (#2065)
This commit is contained in:
@@ -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!(
|
||||
|
Reference in New Issue
Block a user