From: Gerhard Sittig Date: Sun, 2 Jul 2023 07:48:57 +0000 (+0200) Subject: tests: implement strutil tests for text line and word splitting X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=4db61ed4d0c5df35a15da380ef55d27c73e38051;hp=4db61ed4d0c5df35a15da380ef55d27c73e38051;p=libsigrok.git tests: implement strutil tests for text line and word splitting 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. ---