diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-19 05:34:00 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-19 05:34:00 +0200 |
commit | 18c419ffb4e750c3c9ea8570cf18f3099267b1bb (patch) | |
tree | a1d936834a54934cb4407f870d2ac1dbaa87cd3b /source/tests/input_buffer.test.c | |
parent | 8499b75fb011d72eeb5acbd85bcf41e4ee51e9a7 (diff) | |
download | kit-18c419ffb4e750c3c9ea8570cf18f3099267b1bb.zip |
Update xml parsing
Diffstat (limited to 'source/tests/input_buffer.test.c')
-rw-r--r-- | source/tests/input_buffer.test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/tests/input_buffer.test.c b/source/tests/input_buffer.test.c index 237d60d..89717d1 100644 --- a/source/tests/input_buffer.test.c +++ b/source/tests/input_buffer.test.c @@ -56,7 +56,7 @@ TEST("input buffer read twice") { is_destroy(in); } -static i8 is_integer_(str_t const data) { +static i8 is_integer_(str_t const data, void *_) { for (ptrdiff_t i = 0; i < data.size; i++) if (data.values[i] < '0' || data.values[i] > '9') return 0; @@ -69,7 +69,7 @@ TEST("input buffer read integer once") { is_handle_t in = IS_WRAP_STRING(text); ib_t first = IB_WRAP(in); - ib_t second = ib_while(first, is_integer_); + ib_t second = ib_while(first, is_integer_, NULL); REQUIRE(second.status == KIT_OK); REQUIRE(second.data.size == 5); @@ -87,9 +87,9 @@ TEST("input buffer read integer twice") { is_handle_t in = IS_WRAP_STRING(text); ib_t first = IB_WRAP(in); - ib_t second = ib_while(first, is_integer_); + ib_t second = ib_while(first, is_integer_, NULL); ib_t third = ib_read(second, 1); - ib_t fourth = ib_while(third, is_integer_); + ib_t fourth = ib_while(third, is_integer_, NULL); REQUIRE(fourth.status == KIT_OK); REQUIRE(second.data.size == 3); |