From 7568bfc57947cf867a6c47e805e5b3dff65e23bb Mon Sep 17 00:00:00 2001 From: tw93 Date: Sat, 28 Feb 2026 11:38:49 +0800 Subject: [PATCH] test: update bytes_to_human performance test inputs to use Base-10 values --- tests/core_performance.bats | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/core_performance.bats b/tests/core_performance.bats index 0582738..4bf4034 100644 --- a/tests/core_performance.bats +++ b/tests/core_performance.bats @@ -34,26 +34,26 @@ setup() { } @test "bytes_to_human produces correct output for GB range" { - result=$(bytes_to_human 1073741824) + result=$(bytes_to_human 1000000000) [ "$result" = "1.00GB" ] - result=$(bytes_to_human 5368709120) + result=$(bytes_to_human 5000000000) [ "$result" = "5.00GB" ] } @test "bytes_to_human produces correct output for MB range" { - result=$(bytes_to_human 1048576) + result=$(bytes_to_human 1000000) [ "$result" = "1.0MB" ] - result=$(bytes_to_human 104857600) + result=$(bytes_to_human 100000000) [ "$result" = "100.0MB" ] } @test "bytes_to_human produces correct output for KB range" { - result=$(bytes_to_human 1024) + result=$(bytes_to_human 1000) [ "$result" = "1KB" ] - result=$(bytes_to_human 10240) + result=$(bytes_to_human 10000) [ "$result" = "10KB" ] }