aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common/check_utf8.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-03 20:42:17 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-03 20:42:17 +0200
commita319fe44f6d50d25f546e17ad9907eedd9a358a0 (patch)
tree4fdca76c71af9cc78ae2683fa3d8a1589a78d71c /tests/common/check_utf8.c
parent6c5adce7b557c696cb6b5a5ebd4cd1e9380ac419 (diff)
downloadblogc-a319fe44f6d50d25f546e17ad9907eedd9a358a0.tar.gz
blogc-a319fe44f6d50d25f546e17ad9907eedd9a358a0.tar.bz2
blogc-a319fe44f6d50d25f546e17ad9907eedd9a358a0.zip
*: s/sb_/bc_/g
Diffstat (limited to 'tests/common/check_utf8.c')
-rw-r--r--tests/common/check_utf8.c24
1 files changed, 12 insertions, 12 deletions
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,
"<a href=\"{{ BASE_URL }}/page/{{ PREVIOUS_PAGE }}/\">\xc2\xab Newer "
"posts</a>");
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);
}