curl/tests/tunit
parasol-aser 74bc655bdf
tool1622: assert width and exact format boundaries
Convert the silent "was too long!" diagnostics in the timebuf and
max5data width loops into fail_unless assertions, so a regression in
output width fails the unit test directly instead of only printing.

Add small exact-output tables that probe format-transition boundaries
not necessarily hit by the geometric value sweep: the 99999/100000
suffix kick-in for max5data, and the 6d/01h, 51m, 136y, and >99999y roll
points for timebuf.

Closes #21516
2026-05-07 08:00:03 +02:00
..
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tool_dirhie: fix to create drive-relative directory 2026-04-27 12:09:09 +02:00
README.md tests/tunit: make a separate directory for tool-based unit tests 2025-04-08 08:08:05 +02:00
tool1394.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
tool1604.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
tool1621.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
tool1622.c tool1622: assert width and exact format boundaries 2026-05-07 08:00:03 +02:00
tool1623.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
tool1720.c tool_dirhie: fix to create drive-relative directory 2026-04-27 12:09:09 +02:00

Tool unit tests

This directory is for unit testing of tool functions. They are separate from libcurl unit tests, because how these live/work outside of the library and the libcurl unit tests live/work inside.