1 #include "first.h" 2 3 #undef NDEBUG 4 #include <assert.h> 5 #include <stdio.h> 6 #include <stdlib.h> 7 8 #include "http_kv.c" 9 test_http_kv_tables(void)10static void test_http_kv_tables (void) { 11 assert(0 == strcmp(get_http_version_name(HTTP_VERSION_2), "HTTP/2.0")); 12 assert(0 == strcmp(get_http_version_name(HTTP_VERSION_1_1), "HTTP/1.1")); 13 assert(0 == strcmp(get_http_version_name(HTTP_VERSION_1_0), "HTTP/1.0")); 14 15 /* TODO (more) */ 16 } 17 18 void test_http_kv (void); test_http_kv(void)19void test_http_kv (void) 20 { 21 test_http_kv_tables(); 22 } 23