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