diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-04-12 09:35:32 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-04-12 10:21:20 +0200 |
| commit | 04c5b9d5ef4723d469ea3472012787a8e2a5bdbd (patch) | |
| tree | c9626a0cbc18e9d54fad639ac091121dc7d69713 /test/benc.c | |
| parent | cd622b745254baafa21adf4b1b724e079652321a (diff) | |
Add prometheus monitoring
Diffstat (limited to 'test/benc.c')
| -rw-r--r-- | test/benc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/benc.c b/test/benc.c index a9d6ddb..3916f87 100644 --- a/test/benc.c +++ b/test/benc.c @@ -262,7 +262,7 @@ void test_key_not_found() { ssize_t found = bcur_find_key(&bcursor, (const enum benc_nodetype[]){BNT_STRING}, (const char*[]){"a"}, (const size_t[]){1}, 1); - TEST_ASSERT_EQUAL(-1, found); + TEST_ASSERT_EQUAL(-BENC_EENDP, found); TEST_ASSERT_EQUAL_PTR(stream+3, bcursor.readhead); } @@ -351,7 +351,7 @@ void test_stop_at_end() { ssize_t found = bcur_find_key(&bcursor, (const enum benc_nodetype[]){BNT_STRING}, (const char*[]){"x"}, (const size_t[]){1}, 1); - TEST_ASSERT_EQUAL_MESSAGE(-1, found, "Found something"); + TEST_ASSERT_EQUAL_MESSAGE(-BENC_EENDP, found, "Found something"); TEST_ASSERT_EQUAL_PTR_MESSAGE(stream+4, bcursor.readhead, "Didn't stop at dict end"); } |
