diff options
author | 2019-10-21 17:11:43 +0300 | |
---|---|---|
committer | 2019-10-21 17:12:30 +0300 | |
commit | b113ca208ec17ac9112ac98a653d48ebf509bdae (patch) | |
tree | b84a5c472cfb74ca7b44268b028bf2a0f214d67d /test | |
parent | 7d5af223cf884116423a24a287755c43e74b6f37 (diff) | |
download | librin-b113ca208ec17ac9112ac98a653d48ebf509bdae.tar.gz librin-b113ca208ec17ac9112ac98a653d48ebf509bdae.tar.bz2 librin-b113ca208ec17ac9112ac98a653d48ebf509bdae.zip |
test: rin_fixme is now covered.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostic.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/diagnostic.c b/test/diagnostic.c index dbd583a..9245d21 100644 --- a/test/diagnostic.c +++ b/test/diagnostic.c @@ -101,7 +101,19 @@ static int warn_test(void) static int fixme_test(void) { - return 77; + size_t i; + int usearg; + int ret; + + static const char *in[] = {"", "test", "test number is %zu", "%zu tests ran"}; + static const char *expected[] = {"fixme:\n", "fixme:test\n", "fixme:test number is 3\n", "fixme:4 tests ran\n"}; + + for (i = 0; i < arrlen(in); ++i) { + usearg = i < (arrlen(in) / 2) ? 0 : 1; + ret = test_default_channels(in[i], expected[i], i, usearg, rin_fixme); + } + + return ret; } static int info_test(void) |