Skip to content

Commit

Permalink
tests: internal: utils: add missing test
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Dec 5, 2024
1 parent fc236e7 commit f27201e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/internal/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ void test_write_str_invalid_leading_byte()

void test_write_str_special_bytes()
{

struct write_str_case cases[] = {
/*
* Escaped leading hex (two hex, one valid unicode)
Expand All @@ -288,6 +287,11 @@ void test_write_str_special_bytes()
"\\u4f60\\u597d\\u4e16\\u754c",
FLB_TRUE
},
{
"\xC3\xA1\x0A", 3, /* UTF-8 encoding of á and newline */
"\\u00e1\\n", /* Expected escaped output */
FLB_TRUE
},
{ 0 }
};

Expand Down

0 comments on commit f27201e

Please sign in to comment.