diff --git a/minimal-examples/api-tests/api-test-lws_tokenize/main.c b/minimal-examples/api-tests/api-test-lws_tokenize/main.c index 9b3714fa0..ba4e94308 100644 --- a/minimal-examples/api-tests/api-test-lws_tokenize/main.c +++ b/minimal-examples/api-tests/api-test-lws_tokenize/main.c @@ -158,6 +158,12 @@ struct expected expected1[] = { { LWS_TOKZE_DELIMITER, ".", 1 }, { LWS_TOKZE_TOKEN, "com", 3 }, { LWS_TOKZE_ENDED, "", 0 }, + }, + expected15[] = { + { LWS_TOKZE_TOKEN, "close", 5 }, + { LWS_TOKZE_DELIMITER, ",", 1 }, + { LWS_TOKZE_TOKEN, "Upgrade", 7 }, + { LWS_TOKZE_ENDED, "", 0 }, } ; @@ -227,6 +233,11 @@ struct tests tests[] = { expected14, LWS_ARRAY_SIZE(expected14), LWS_TOKENIZE_F_NO_FLOATS }, + { + "close, Upgrade", + expected15, LWS_ARRAY_SIZE(expected15), + LWS_TOKENIZE_F_COMMA_SEP_LIST + }, }; /* @@ -308,7 +319,8 @@ int main(int argc, const char **argv) if (e > 0 && (ts.token_len != exp->len || memcmp(exp->value, ts.token, exp->len))) { - lwsl_notice("fail token mismatch\n"); + lwsl_notice("fail token mismatch %d %d %.*s\n", + ts.token_len, exp->len, ts.token_len, ts.token); fail++; break; }