This commit is contained in:
Dan Church 2022-09-13 11:50:51 -05:00
parent 8059dc4455
commit 93f0245d6b
Signed by: h3xx
GPG Key ID: EA2BF379CD2CDBD0
2 changed files with 7 additions and 0 deletions

View File

@ -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++ ))

BIN
t/t.tar

Binary file not shown.