mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #5532 from cakebaker/df_fix_5531
df: fix rounding issue in test
This commit is contained in:
commit
6ce9d84232
1 changed files with 5 additions and 1 deletions
|
@ -422,7 +422,11 @@ fn test_total_label_in_correct_column() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_use_percentage() {
|
fn test_use_percentage() {
|
||||||
let output = new_ucmd!()
|
let output = new_ucmd!()
|
||||||
.args(&["--total", "--output=used,avail,pcent"])
|
// set block size = 1, otherwise the returned values for
|
||||||
|
// "used" and "avail" will be rounded. And using them to calculate
|
||||||
|
// the "percentage" values might lead to a mismatch with the returned
|
||||||
|
// "percentage" values.
|
||||||
|
.args(&["--total", "--output=used,avail,pcent", "--block-size=1"])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_move_str();
|
.stdout_move_str();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue