forked from extern/nushell
changed the way durations and filesizes are parsed (#6640)
This commit is contained in:
@ -402,6 +402,18 @@ fn duration_decimal_math_with_all_units() {
|
||||
assert_eq!(actual.out, "1wk 3day 8hr 10min 16sec 121ms 11µs 12ns");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn duration_decimal_dans_test() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
3.14sec
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "3sec 140ms");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn duration_math_with_negative() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user