mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:45:41 +02:00
Fix open ended ranges (#4677)
* Make open ended ranges more open ended * Add test
This commit is contained in:
@ -272,3 +272,8 @@ fn shortcircuiting_and() -> TestResult {
|
||||
fn shortcircuiting_or() -> TestResult {
|
||||
run_test(r#"$true || (5 / 0; $false)"#, "true")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn open_ended_range() -> TestResult {
|
||||
run_test(r#"1.. | first 100000 | length"#, "100000")
|
||||
}
|
||||
|
Reference in New Issue
Block a user