mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 16:11:08 +02:00
* Fix bug #2921 Moving whether a range should be parsed further back, giving e.G. parsing of invocations precedence fixes the bug * Add test
This commit is contained in:
13
crates/nu-engine/tests/evaluate/invocation.rs
Normal file
13
crates/nu-engine/tests/evaluate/invocation.rs
Normal file
@ -0,0 +1,13 @@
|
||||
use nu_test_support::nu;
|
||||
|
||||
#[test]
|
||||
fn test_parse_invocation_with_range() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
r#"
|
||||
let foo = 3
|
||||
echo $(echo 1..$foo | each { echo $it }) | to json
|
||||
"#
|
||||
);
|
||||
assert_eq!(actual.out, "[1,2,3]")
|
||||
}
|
@ -1 +1,2 @@
|
||||
mod invocation;
|
||||
mod operator;
|
||||
|
Reference in New Issue
Block a user