mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 10:52:54 +02:00
allow decimals as a range boundary (#2509)
This commit is contained in:
@@ -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!(
|
||||
|
Reference in New Issue
Block a user