test: ds: update to use new object system

This commit is contained in:
2025-10-19 21:02:52 +01:00
parent 1daf31093c
commit 25dc4038df
6 changed files with 11 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ static void test_string_create(CuTest *tc)
CuAssertIntEquals(tc, 0, b_string_get_size(str, B_STRLEN_NORMAL));
CuAssertStrEquals(tc, "", b_string_ptr(str));
b_string_release(str);
b_string_unref(str);
str = b_string_create_from_c('A', 8);
@@ -17,7 +17,7 @@ static void test_string_create(CuTest *tc)
CuAssertIntEquals(tc, 8, b_string_get_size(str, B_STRLEN_NORMAL));
CuAssertStrEquals(tc, "AAAAAAAA", b_string_ptr(str));
b_string_release(str);
b_string_unref(str);
str = b_string_create_from_cstr("Hello, world!");
@@ -25,7 +25,7 @@ static void test_string_create(CuTest *tc)
CuAssertIntEquals(tc, 13, b_string_get_size(str, B_STRLEN_NORMAL));
CuAssertStrEquals(tc, "Hello, world!", b_string_ptr(str));
b_string_release(str);
b_string_unref(str);
}
static void test_string_length(CuTest *tc)
@@ -36,7 +36,7 @@ static void test_string_length(CuTest *tc)
CuAssertIntEquals(tc, 13, b_string_get_size(s, B_STRLEN_IGNORE_ESC));
CuAssertIntEquals(tc, 20, b_string_get_size(s, B_STRLEN_NORMAL));
b_string_release(s);
b_string_unref(s);
}
CuSuite *get_all_tests(void)