logo

utils-extra

Collection of extra tools for Unixes
commit: 81d9716ebb60e35bdb8eddebc3030df183c7f1a9
parent 874e882dff6bd580bd17427dc41d55e329665da3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  9 Jul 2024 20:53:51 +0200

test-cmd/humanize: Remove limits test case

Obsoleted by switch to floating points

Diffstat:

Mtest-cmd/humanize12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/test-cmd/humanize b/test-cmd/humanize @@ -77,23 +77,11 @@ duration_body() { atf_check -o "inline:1Y 1M 1D 1h 1m 1s\n" ../cmd/humanize -t 34276730 } -atf_test_case limits -limits_body() { - atf_check -o 'inline:9.22337 E\n' ../cmd/humanize 9223372036854775806 - atf_check -s exit:1 -e 'inline:humanize: 9223372036854775808 is too large\n' ../cmd/humanize 9223372036854775808 - - # Not as great as it should but at least not a lie - atf_check -o 'inline:-9.22337e+18 \n' ../cmd/humanize -- -9223372036854775807 - - atf_check -s exit:1 -e 'inline:humanize: -9223372036854775809 is too small\n' ../cmd/humanize -- -9223372036854775809 -} - atf_init_test_cases() { cd "$(atf_get_srcdir)" || exit 1 atf_add_test_case noarg atf_add_test_case badflag - atf_add_test_case limits atf_add_test_case one atf_add_test_case two