diff options
Diffstat (limited to 'test/test_string.c')
-rw-r--r-- | test/test_string.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_string.c b/test/test_string.c index f8534001..c91284bb 100644 --- a/test/test_string.c +++ b/test/test_string.c @@ -32,13 +32,17 @@ test_strerror(void) { const char* msg = serd_strerror(SERD_SUCCESS); assert(!strcmp(msg, "Success")); - for (int i = SERD_FAILURE; i <= SERD_ERR_INVALID; ++i) { + + for (int i = SERD_FAILURE; i <= SERD_BAD_WRITE; ++i) { msg = serd_strerror((SerdStatus)i); assert(strcmp(msg, "Success")); } msg = serd_strerror((SerdStatus)-1); assert(!strcmp(msg, "Unknown error")); + + msg = serd_strerror((SerdStatus)1000000); + assert(!strcmp(msg, "Unknown error")); } static void |