예제 #1
0
int main(int argc, char *argv[]) {
        test_string_erase();
        test_ascii_strcasecmp_n();
        test_ascii_strcasecmp_nn();
        test_streq_ptr();
        test_strstrip();
        test_strextend();
        test_strextend_with_separator();
        test_strrep();
        test_strappend();
        test_string_has_cc();
        test_ascii_strlower();
        test_strshorten();
        test_strjoina();
        test_strcmp_ptr();
        test_foreach_word();
        test_foreach_word_quoted();
        test_endswith();
        test_endswith_no_case();
        test_delete_chars();
        test_delete_trailing_chars();
        test_delete_trailing_slashes();
        test_skip_leading_chars();
        test_in_charset();
        test_split_pair();
        test_first_word();
        test_strlen_ptr();

        return 0;
}
예제 #2
0
파일: test_x9.c 프로젝트: loogica/x9
int
    main(int argc, char *argv[])
{
    test_endswith();
    test_remove_components();
    test_join_paths();
    test_find_file();
    test_find_file_dont_exist();
    printf("Everything is ok!\n");
    return 0;
}
예제 #3
0
파일: tests.c 프로젝트: DownGoat/plstr
int main () {

    test_slice_positive_sub_str();
    test_slice_equal_offlim();
    test_slice_negative_offset();
    test_slice_negative_limit();
    test_slice_both_negative();
    test_slice_limit_oor();
    test_slice_offset_oor();
    test_slice_empty_string();
    test_strcpy_no_alloc();
    test_strcpy_pre_alloc();
    test_strcpy_not_empty();
    test_strcpy_empty_paras();
    test_strcat();
    test_strcat_empty_source();
    test_strcat_empty_destination();
    test_strcat_empty_params();
    test_split();
    test_split_multiple_delims();
    test_split_delim_not_found();
    test_split_empty_delim();
    test_split_single_delim();
    test_split_empty_paras();
    test_startswith();
    test_startwith_empy_string();
    test_startwith_empy_prefix();
    test_startwith_empty_params();
    test_endswith();
    test_endswith_empty_string();
    test_endswith_empty_postfix();
    test_endswith_empty_params();
    test_strip_no_chars();
    test_strip_with_chars();
    test_strip_empty_params();
    test_translate();
    test_translate_empty_params();
    test_splitlines();
    test_splitlines_keepends();
    test_splitlines_empty_params();
    test_count();
    test_count_empty_params();
    test_expandtabs();
    test_expandtabs_no_params();

    return 0;
}