]> git.ipfire.org Git - thirdparty/haproxy.git/commit
TESTS: add a unit test for one_among_mask()
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2022 18:28:14 +0000 (20:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2022 18:29:57 +0000 (20:29 +0200)
commit798d6fc0a7d0e55817c4fd56a741c1a4a24ef082
treeb6eddc66e61ae413b1aa6b83e0d343bd01c0d2bc
parentc7a8a3c7bd26766b1f9124c169e2c4a214ca9e6d
TESTS: add a unit test for one_among_mask()

This one produces random numbers and verifies that the output is correct.
It can also take arguments to test individual values.
tests/unit/test-1-among.c [new file with mode: 0644]