void test_deprecated() { ChewingContext *ctx; int type; ChewingConfigData configure; memset( &configure, 0, sizeof( ChewingConfigData ) ); ctx = chewing_new(); start_testcase( ctx, fd ); chewing_set_hsuSelKeyType( ctx, HSU_SELKEY_TYPE1 ); type = chewing_get_hsuSelKeyType( ctx ); ok( type == HSU_SELKEY_TYPE1, "`%d' shall be `%d'", type, HSU_SELKEY_TYPE1 ); chewing_Configure( ctx, &configure ); chewing_delete( ctx ); }
void test_deprecated() { ChewingContext *ctx; int type; ChewingConfigData configure = { 0 }; chewing_Init( 0, 0 ); ctx = chewing_new(); chewing_set_hsuSelKeyType( ctx, HSU_SELKEY_TYPE1 ); type = chewing_get_hsuSelKeyType( ctx ); ok( type == HSU_SELKEY_TYPE1, "`%d' shall be `%d'", type, HSU_SELKEY_TYPE1 ); chewing_Configure( ctx, &configure ); chewing_delete( ctx ); chewing_Terminate(); }