Fix open ended ranges (#4677)

* Make open ended ranges more open ended

* Add test
This commit is contained in:
JT
2022-02-28 11:15:31 -05:00
committed by GitHub
parent b09acdb7f9
commit cb5c61d217
3 changed files with 12 additions and 2 deletions

View File

@ -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")
}