mirror of
https://codeberg.org/h3xx/simplify_static_dir
synced 2024-08-14 23:57:24 +00:00
+1 test
This commit is contained in:
parent
8059dc4455
commit
93f0245d6b
2 changed files with 7 additions and 0 deletions
7
t/run.sh
7
t/run.sh
|
@ -87,6 +87,12 @@ test_freed_bytes() {
|
||||||
assert_equals "$OUT" "freed 24 bytes (24 B)"
|
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
|
cd "$TEMPDIR" || exit
|
||||||
TEST_COUNT=0
|
TEST_COUNT=0
|
||||||
TESTS_PASSED=0
|
TESTS_PASSED=0
|
||||||
|
@ -98,6 +104,7 @@ for TESTNAME in \
|
||||||
test_link_counting \
|
test_link_counting \
|
||||||
test_timestamp_preservation \
|
test_timestamp_preservation \
|
||||||
test_freed_bytes \
|
test_freed_bytes \
|
||||||
|
test_freed_bytes_commas \
|
||||||
; do
|
; do
|
||||||
|
|
||||||
(( TEST_COUNT++ ))
|
(( TEST_COUNT++ ))
|
||||||
|
|
BIN
t/t.tar
BIN
t/t.tar
Binary file not shown.
Loading…
Reference in a new issue