allow decimals as a range boundary (#2509)

This commit is contained in:
Jonathan Turner
2020-09-08 05:30:11 +12:00
committed by GitHub
parent 2c5939dc7d
commit d9ae66791a
3 changed files with 42 additions and 11 deletions

View File

@@ -502,6 +502,18 @@ fn range_with_open_right() {
assert_eq!(actual.out, "95");
}
#[test]
fn range_with_mixed_types() {
let actual = nu!(
cwd: ".",
r#"
echo 1..10.5 | math sum
"#
);
assert_eq!(actual.out, "55");
}
#[test]
fn it_expansion_of_tables() {
let actual = nu!(