43 ck_assert_str_eq(end,
value);
57 ck_assert_str_eq(end,
"test");
99 Suite *s = suite_create(
"stringbuffer");
100 TCase *tc_core = tcase_create(
"Core");
105 suite_add_tcase(s, tc_core);
106 tcase_add_test(tc_core, test_empty);
107 tcase_add_test(tc_core, test_shared);
108 tcase_add_test(tc_core, test_append_int64_zero);
109 tcase_add_test(tc_core, test_append_int64_positive);
110 tcase_add_test(tc_core, test_append_int64_negative);
111 tcase_add_test(tc_core, test_append_int64_max);
112 tcase_add_test(tc_core, test_append_int64_min);
120 SRunner *sr = srunner_create(s);
122 srunner_set_xml(sr, LOGDIR
"/unit/common/stringbuffer.xml");
123 srunner_set_log(sr, LOGDIR
"/unit/common/stringbuffer.out");
124 srunner_run_all(sr, CK_ENV);
125 nf = srunner_ntests_failed(sr);
127 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;