mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Bump bytesize
to fix into filesize
(#15088)
# Description Closes https://github.com/nushell/nushell/issues/14866 Incorporates https://github.com/bytesize-rs/bytesize/pull/59 with bytesize version 1.3.1 # User-Facing Changes Now rejected strings ``` "1.3 1.3 kB" | into filesize "1 420 kB" | into filesize ``` # Tests + Formatting Added test with invalid input that was silently ignored before
This commit is contained in:
committed by
GitHub
parent
a5d7d6dd46
commit
2a3d5a9d42
@ -128,3 +128,10 @@ fn wrong_positive_str() {
|
||||
|
||||
assert!(actual.err.contains("can't convert string to filesize"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn invalid_str() {
|
||||
let actual = nu!("'42.0 42.0 kB' | into filesize");
|
||||
|
||||
assert!(actual.err.contains("can't convert string to filesize"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user