From a319fe44f6d50d25f546e17ad9907eedd9a358a0 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 3 Sep 2016 20:42:17 +0200 Subject: *: s/sb_/bc_/g --- tests/common/check_utf8.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/common/check_utf8.c') diff --git a/tests/common/check_utf8.c b/tests/common/check_utf8.c index d104265..f4c7f32 100644 --- a/tests/common/check_utf8.c +++ b/tests/common/check_utf8.c @@ -45,30 +45,30 @@ test_utf8_invalid(void **state) static void test_utf8_valid_str(void **state) { - sb_string_t *s = sb_string_new(); - sb_string_append(s, + bc_string_t *s = bc_string_new(); + bc_string_append(s, "\xc2\xab Newer " "posts"); assert_true(blogc_utf8_validate_str(s)); - sb_string_free(s, true); - s = sb_string_new(); - sb_string_append(s, "\xe2\x82\xac"); + bc_string_free(s, true); + s = bc_string_new(); + bc_string_append(s, "\xe2\x82\xac"); assert_true(blogc_utf8_validate_str(s)); - sb_string_free(s, true); + bc_string_free(s, true); } static void test_utf8_invalid_str(void **state) { - sb_string_t *s = sb_string_new(); - sb_string_append(s, "\xff\xfe\xac\x20"); // utf-16 + bc_string_t *s = bc_string_new(); + bc_string_append(s, "\xff\xfe\xac\x20"); // utf-16 assert_false(blogc_utf8_validate_str(s)); - sb_string_free(s, true); - s = sb_string_new(); - sb_string_append(s, "\xff\xfe\x00\x00\xac\x20\x00\x00"); // utf-32 + bc_string_free(s, true); + s = bc_string_new(); + bc_string_append(s, "\xff\xfe\x00\x00\xac\x20\x00\x00"); // utf-32 assert_false(blogc_utf8_validate_str(s)); - sb_string_free(s, true); + bc_string_free(s, true); } -- cgit v1.2.3-18-g5258