mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
# Description Add support for using negative values file size for `into filesize`. This will help in sorting the file size if negative values are also passed. **Before**  **After**  # User-Facing Changes - User can now sort negative filesize also # Tests + Formatting - 🟢 toolkit fmt - 🟢 toolkit clippy - 🟢 toolkit test - 🟢 toolkit test stdlib # After Submitting --------- Co-authored-by: Priyank Singh <priyank.singh@soroco.com>
This commit is contained in:
@ -61,3 +61,10 @@ fn into_filesize_negative_filesize() {
|
||||
|
||||
assert!(actual.out.contains("-3.0 KiB"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn into_negative_filesize() {
|
||||
let actual = nu!("'-1' | into filesize");
|
||||
|
||||
assert!(actual.out.contains("-1 B"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user