From e0261c66c8eafe0b2d04ef87ee16c3ea898cc806 Mon Sep 17 00:00:00 2001 From: David Rebbe <1187684+ic3man5@users.noreply.github.com> Date: Wed, 22 Jan 2025 23:38:13 -0500 Subject: [PATCH] test(sort): needs support for human-readable block size suffixes R and Q --- tests/by-util/test_sort.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/by-util/test_sort.rs b/tests/by-util/test_sort.rs index b6ce74cc8..9a12d3ef8 100644 --- a/tests/by-util/test_sort.rs +++ b/tests/by-util/test_sort.rs @@ -1313,3 +1313,14 @@ fn test_k_overflow() { .succeeds() .stdout_is(output); } + +#[test] +fn test_human_blocks_r_and_q() { + let input = "1Q\n1R\n"; + let output = "1R\n1Q\n"; + new_ucmd!() + .args(&["-h"]) + .pipe_in(input) + .succeeds() + .stdout_is(output); +}