summaryrefslogtreecommitdiffstats
path: root/tests/nghttp2_extpri_test.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:01 +0000
commit42f47327da6a208ac3cd1f9bca07fc506ed51a63 (patch)
treee06c5e993e0d0b618f616280b372506b1f0f8419 /tests/nghttp2_extpri_test.c
parentAdding debian version 1.59.0-1. (diff)
downloadnghttp2-42f47327da6a208ac3cd1f9bca07fc506ed51a63.tar.xz
nghttp2-42f47327da6a208ac3cd1f9bca07fc506ed51a63.zip
Merging upstream version 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));
}
}