diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-15 22:48:40 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-15 22:48:40 +0200 |
commit | 7772c93a3ec1ce60469e9aea9899687ae1141f34 (patch) | |
tree | 2a407cb06bd5045b787f2f639daa02d0dd2409d9 /src/message_test.c | |
parent | e4c79d36150431ffb97cb8952ec482af2e57f228 (diff) |
patch 9.0.1715: duplicate test in message_test.cv9.0.1715
Problem: duplicate test in message_test.c
Solution: Remove duplicate test and make functions static
closes: #12803
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/message_test.c')
-rw-r--r-- | src/message_test.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/message_test.c b/src/message_test.c index 4ad8041a46..e5fd562305 100644 --- a/src/message_test.c +++ b/src/message_test.c @@ -402,11 +402,6 @@ test_vim_snprintf_positional(void) assert(bsize == 0 || STRNCMP(buf, "9 1234567 7654321", bsize_int) == 0); assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0'); - n = vim_snprintf(buf, bsize, "%2$d %1$llu %3$lu", 1234567LLU, 9, 7654321UL); - assert(n == 17); - assert(bsize == 0 || STRNCMP(buf, "9 1234567 7654321", bsize_int) == 0); - assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0'); - n = vim_snprintf(buf, bsize, "%2$d %1$x %3$lu", 0xdeadbeef, 9, 7654321UL); assert(n == 18); assert(bsize == 0 || STRNCMP(buf, "9 deadbeef 7654321", bsize_int) == 0); |