#include "zero-pinyin-service.h" static void test_GString () { GString* s = NULL; s = g_string_new (""); g_string_append_printf (s, "s0=%d ", 1); g_assert_cmpstr (s->str, ==, "s0=1 "); g_string_free (s, TRUE); } int main (int argc, char *argv[]) { g_test_init (&argc, &argv, NULL); g_test_add_func ("/zero/test_GString", test_GString); return g_test_run (); }