aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check_utf8.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-04 03:19:34 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-04 03:19:34 +0200
commit5c2151f9697ad897b336e3732d8b6df82803658e (patch)
tree36a02b026905667e92478b87b63e01f989057fc5 /tests/check_utf8.c
parent1099a4d991942655c0291a74b488322d5da533bd (diff)
downloadblogc-5c2151f9697ad897b336e3732d8b6df82803658e.tar.gz
blogc-5c2151f9697ad897b336e3732d8b6df82803658e.tar.bz2
blogc-5c2151f9697ad897b336e3732d8b6df82803658e.zip
utf8: fix test data type
Diffstat (limited to 'tests/check_utf8.c')
-rw-r--r--tests/check_utf8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check_utf8.c b/tests/check_utf8.c
index 9f98886..9f8c244 100644
--- a/tests/check_utf8.c
+++ b/tests/check_utf8.c
@@ -77,14 +77,14 @@ test_utf8_invalid_str(void **state)
static void
test_utf8_skip_bom(void **state)
{
- const char c[4] = {0xef, 0xbb, 0xbf, 0};
+ const uint8_t c[4] = {0xef, 0xbb, 0xbf, 0};
assert_int_equal(blogc_utf8_skip_bom(c, 2), 0);
assert_int_equal(blogc_utf8_skip_bom(c, 3), 3);
assert_string_equal(c + 3, "");
- const char d[8] = {0xef, 0xbb, 0xbf, 'b', 'o', 'l', 'a', 0};
+ const uint8_t d[8] = {0xef, 0xbb, 0xbf, 'b', 'o', 'l', 'a', 0};
assert_int_equal(blogc_utf8_skip_bom(d, 8), 3);
assert_string_equal(d + 3, "bola");
- const char e[5] = "bola";
+ const uint8_t e[5] = "bola";
assert_int_equal(blogc_utf8_skip_bom(e, 4), 0);
}