int main(int argc, char *argv[]) { char *logname; int ret; putenv( "CHEWING_PATH=" CHEWING_DATA_PREFIX ); putenv( "CHEWING_USER_PATH=" TEST_HASH_DIR ); ret = asprintf( &logname, "%s.log", argv[0] ); if ( ret == -1 ) return -1; fd = fopen( logname, "w" ); assert( fd ); free( logname ); test_default_value(); test_set_candPerPage(); test_set_maxChiSymbolLen(); test_maxChiSymbolLen(); test_set_selKey(); test_set_addPhraseDirection(); test_set_spaceAsSelection(); test_set_escCleanAllBuf(); test_set_autoShiftCur(); test_set_easySymbolInput(); test_set_phraseChoiceRearward(); test_set_ChiEngMode(); test_set_ShapeMode(); test_deprecated(); test_new2(); fclose( fd ); return exit_status(); }
int main() { putenv( "CHEWING_PATH=" CHEWING_DATA_PREFIX ); putenv( "CHEWING_USER_PATH=" TEST_HASH_DIR ); test_default_value(); test_set_candPerPage(); test_set_maxChiSymbolLen(); test_set_selKey(); test_set_addPhraseDirection(); test_set_spaceAsSelection(); test_set_escCleanAllBuf(); test_set_autoShiftCur(); test_set_easySymbolInput(); test_set_phraseChoiceRearward(); test_set_ChiEngMode(); test_set_ShapeMode(); test_deprecated(); return exit_status(); }