summaryrefslogtreecommitdiffstats
path: root/tests/nghttp2_extpri_test.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:51:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:51:45 +0000
commitb008a9f667dfbe92c7275adec7d9b9d6b05c3ec8 (patch)
treee63c9ae918acedbe29bb3b67109da9615c08e5e6 /tests/nghttp2_extpri_test.c
parentAdding upstream version 1.59.0. (diff)
downloadnghttp2-b008a9f667dfbe92c7275adec7d9b9d6b05c3ec8.tar.xz
nghttp2-b008a9f667dfbe92c7275adec7d9b9d6b05c3ec8.zip
Adding upstream version 1.60.0.upstream/1.60.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/nghttp2_extpri_test.c')
-rw-r--r--tests/nghttp2_extpri_test.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/tests/nghttp2_extpri_test.c b/tests/nghttp2_extpri_test.c
index 0ef59b7..a589b93 100644
--- a/tests/nghttp2_extpri_test.c
+++ b/tests/nghttp2_extpri_test.c
@@ -27,26 +27,35 @@
#include <stdio.h>
-#include <CUnit/CUnit.h>
+#include "munit.h"
#include "nghttp2_extpri.h"
#include "nghttp2_test_helper.h"
+static const MunitTest tests[] = {
+ munit_void_test(test_nghttp2_extpri_to_uint8),
+ munit_test_end(),
+};
+
+const MunitSuite extpri_suite = {
+ "/extpri", tests, NULL, 1, MUNIT_SUITE_OPTION_NONE,
+};
+
void test_nghttp2_extpri_to_uint8(void) {
{
nghttp2_extpri pri = {1, 0};
- CU_ASSERT(1 == nghttp2_extpri_to_uint8(&pri));
+ assert_uint8(1, ==, nghttp2_extpri_to_uint8(&pri));
}
{
nghttp2_extpri pri = {1, 1};
- CU_ASSERT((0x80 | 1) == nghttp2_extpri_to_uint8(&pri));
+ assert_uint8((0x80 | 1), ==, nghttp2_extpri_to_uint8(&pri));
}
{
nghttp2_extpri pri = {7, 1};
- CU_ASSERT((0x80 | 7) == nghttp2_extpri_to_uint8(&pri));
+ assert_uint8((0x80 | 7), ==, nghttp2_extpri_to_uint8(&pri));
}
{
nghttp2_extpri pri = {7, 0};
- CU_ASSERT(7 == nghttp2_extpri_to_uint8(&pri));
+ assert_uint8(7, ==, nghttp2_extpri_to_uint8(&pri));
}
}