On Wed, Apr 22, 2026 at 02:04:06AM +0545, Shuvam Pandey wrote: > string_get_size() has several non-obvious outputs around decimal and > binary unit boundaries because the unit is chosen before the final > rounding step. Decimal values just below 1 MB can print as "1000 kB"; > binary values below 1 KiB stay in bytes; and rounded binary values can > print as "1000 KiB" or "1024 KiB" before the input reaches the next > binary unit. > > Add KUnit coverage for these current outputs and nearby threshold values > so the existing behavior is explicit.
Always keen to see more test cases and hence almost automatic green light from me! Reviewed-by: Andy Shevchenko <[email protected]> -- With Best Regards, Andy Shevchenko

