]> sigrok.org Git - libsigrok.git/commit
tests: implement strutil test cases for power-of-two calculation
authorGerhard Sittig <redacted>
Tue, 17 Oct 2023 19:22:32 +0000 (21:22 +0200)
committerGerhard Sittig <redacted>
Wed, 18 Oct 2023 19:35:13 +0000 (21:35 +0200)
commit96b8556295055ae7e8736625fffd295201624769
tree38462ef5ae4e8e504655f00758393009620625a6
parenta2f3645bcf73a421192591fc7d2d030f9997fda7
tests: implement strutil test cases for power-of-two calculation

Add the "calc" section to the strutil tests, and implement test cases
which cover the power-of-two calculation routine. Cover small values
which are the immediate use case and the motivation for introducing the
helper routine.
tests/strutil.c