From 93f0245d6b188fd35be19ba3220fa3315cfc86dd Mon Sep 17 00:00:00 2001 From: Dan Church Date: Tue, 13 Sep 2022 11:50:51 -0500 Subject: [PATCH] +1 test --- t/run.sh | 7 +++++++ t/t.tar | Bin 880640 -> 880640 bytes 2 files changed, 7 insertions(+) diff --git a/t/run.sh b/t/run.sh index a64e969..708ecd7 100755 --- a/t/run.sh +++ b/t/run.sh @@ -87,6 +87,12 @@ test_freed_bytes() { assert_equals "$OUT" "freed 24 bytes (24 B)" } +test_freed_bytes_commas() { + _prep_tar && + local -r OUT=$($SCRIPT -f t/output-commas 2>&1 |tail -1) + assert_equals "$OUT" "freed 1,048,576 bytes (1 MB)" +} + cd "$TEMPDIR" || exit TEST_COUNT=0 TESTS_PASSED=0 @@ -98,6 +104,7 @@ for TESTNAME in \ test_link_counting \ test_timestamp_preservation \ test_freed_bytes \ + test_freed_bytes_commas \ ; do (( TEST_COUNT++ )) diff --git a/t/t.tar b/t/t.tar index fcf3d1faaf903047ff5e54e535ff82985b2d68a0..a02062af87dd23ee50ea6bbd6216d3e0f4a66cc7 100644 GIT binary patch delta 403 zcmZp8VA}A&bV8?yiLs%9p|OFvu>petkY!}VpkO-LkTs>5k+Gc-jG2HmGZ3=?F)I+W z0Wmuea{w_X5OV=BHxTn|XJq94AHrXvpI=&1P+Fp!oS&PUSUiz2bYhAs)E+|vV?&@l zM&`yado}|tVH85qptZ2V0sD@FG8b%IZ&gSxse%zLNLgIlNlKs#SMVK1Vk7B zosR$$1-%SGJeU*%IzV$H*v9FCEWBuT8iE{aZeUT1Nl? delta 174 zcmZp8VA}A&bV8?yv5~Q%p}DECi5Y`|p@E^XIfH`fWJA`JW=6(#Mlfaq(#$~20>rF9 p%m&2lK+FNeoIuP4#N0s4vz?KV_kYNC1vTCWj8r2XI@lI40suWqEp`9^