aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-04 03:56:34 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-04 03:56:34 +0200
commit82d4d0f0cfc47a5b4520cf631290f8ced08a0f04 (patch)
tree32982aed1af5ff40847a8af9ce66d9e938dcad0c /tests
parent5c2151f9697ad897b336e3732d8b6df82803658e (diff)
downloadblogc-82d4d0f0cfc47a5b4520cf631290f8ced08a0f04.tar.gz
blogc-82d4d0f0cfc47a5b4520cf631290f8ced08a0f04.tar.bz2
blogc-82d4d0f0cfc47a5b4520cf631290f8ced08a0f04.zip
utf8: fix test
Diffstat (limited to 'tests')
-rw-r--r--tests/check_utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check_utf8.c b/tests/check_utf8.c
index 9f8c244..d9b6cd4 100644
--- a/tests/check_utf8.c
+++ b/tests/check_utf8.c
@@ -82,7 +82,7 @@ test_utf8_skip_bom(void **state)
assert_int_equal(blogc_utf8_skip_bom(c, 3), 3);
assert_string_equal(c + 3, "");
const uint8_t d[8] = {0xef, 0xbb, 0xbf, 'b', 'o', 'l', 'a', 0};
- assert_int_equal(blogc_utf8_skip_bom(d, 8), 3);
+ assert_int_equal(blogc_utf8_skip_bom(d, 7), 3);
assert_string_equal(d + 3, "bola");
const uint8_t e[5] = "bola";
assert_int_equal(blogc_utf8_skip_bom(e, 4), 0);