]> sigrok.org Git - libsigrok.git/commitdiff
tests: implement strutil tests for text line and word splitting
authorGerhard Sittig <redacted>
Sun, 2 Jul 2023 07:48:57 +0000 (09:48 +0200)
committerGerhard Sittig <redacted>
Wed, 12 Jul 2023 18:42:45 +0000 (20:42 +0200)
Add the test_text_line() and test_text_word() routines to cover the
splitting of text buffers into lines and the splitting of words on a
text line.

This implementation "suffers" from global vars at the file scope,
because moving the table of test cases into the test routine results in
compiler errors (initializer data not constant), the cause is uncertain.


No differences found