foundational_lib2 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Articles/1.html +524 -0
- data/Articles/10.html +63 -0
- data/Articles/11.html +153 -0
- data/Articles/12.html +15 -0
- data/Articles/13.html +14 -0
- data/Articles/14.html +299 -0
- data/Articles/15.html +125 -0
- data/Articles/16.html +908 -0
- data/Articles/2.html +83 -0
- data/Articles/3.html +46 -0
- data/Articles/4.html +108 -0
- data/Articles/5.html +186 -0
- data/Articles/6.html +49 -0
- data/Articles/7.html +25 -0
- data/Articles/8.html +128 -0
- data/Articles/9.html +72 -0
- data/Articles/convert_html_to_markdown.sh +8 -0
- data/Articles/css.css +54 -0
- data/Articles/format.rb +95 -0
- data/Articles/index.html +34 -0
- data/Articles_MD/1.html.md +451 -0
- data/Articles_MD/10.html.md +57 -0
- data/Articles_MD/11.html.md +231 -0
- data/Articles_MD/12.html.md +16 -0
- data/Articles_MD/13.html.md +15 -0
- data/Articles_MD/14.html.md +280 -0
- data/Articles_MD/15.html.md +135 -0
- data/Articles_MD/16.html.md +840 -0
- data/Articles_MD/17.html.md +838 -0
- data/Articles_MD/2.html.md +82 -0
- data/Articles_MD/3.html.md +163 -0
- data/Articles_MD/4.html.md +137 -0
- data/Articles_MD/5.html.md +175 -0
- data/Articles_MD/6.html.md +47 -0
- data/Articles_MD/7.html.md +24 -0
- data/Articles_MD/8.html.md +71 -0
- data/Articles_MD/9.html.md +68 -0
- data/Articles_MD/index.html.md +25 -0
- data/DOCS.md +11153 -0
- data/GENERATE_CUSTOM_FOUNDATIONALLIB.rb +89 -0
- data/LICENSE.md +16 -0
- data/NOTE.md +29 -0
- data/README.md +120 -0
- data/custom_library_example.h +13999 -0
- data/docs/Doxyfile +2746 -0
- data/docs/LICENSE +21 -0
- data/docs/Makefile +39 -0
- data/docs/custom-alternative.css +54 -0
- data/docs/custom.css +57 -0
- data/docs/doxygen-awesome-darkmode-toggle.js +157 -0
- data/docs/doxygen-awesome-fragment-copy-button.js +85 -0
- data/docs/doxygen-awesome-interactive-toc.js +81 -0
- data/docs/doxygen-awesome-paragraph-link.js +51 -0
- data/docs/doxygen-awesome-sidebar-only-darkmode-toggle.css +40 -0
- data/docs/doxygen-awesome-sidebar-only.css +116 -0
- data/docs/doxygen-awesome-tabs.js +90 -0
- data/docs/doxygen-awesome.css +2669 -0
- data/docs/doxygen-custom/custom-alternative.css +54 -0
- data/docs/doxygen-custom/custom.css +57 -0
- data/docs/doxygen-custom/header.html +90 -0
- data/docs/doxygen-custom/toggle-alternative-theme.js +12 -0
- data/docs/header.html +90 -0
- data/docs/html/html/annotated.html +145 -0
- data/docs/html/html/annotated_dup.js +10 -0
- data/docs/html/html/bc_s.png +0 -0
- data/docs/html/html/bdwn.png +0 -0
- data/docs/html/html/classes.html +149 -0
- data/docs/html/html/closed.png +0 -0
- data/docs/html/html/custom-alternative.css +54 -0
- data/docs/html/html/custom.css +57 -0
- data/docs/html/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +141 -0
- data/docs/html/html/dir_68267d1309a1af8e8297ef4c3efbcdba.js +4 -0
- data/docs/html/html/doc.png +0 -0
- data/docs/html/html/doxygen-awesome-darkmode-toggle.js +157 -0
- data/docs/html/html/doxygen-awesome-fragment-copy-button.js +85 -0
- data/docs/html/html/doxygen-awesome-interactive-toc.js +81 -0
- data/docs/html/html/doxygen-awesome-paragraph-link.js +51 -0
- data/docs/html/html/doxygen-awesome-sidebar-only-darkmode-toggle.css +40 -0
- data/docs/html/html/doxygen-awesome-sidebar-only.css +116 -0
- data/docs/html/html/doxygen-awesome-tabs.js +90 -0
- data/docs/html/html/doxygen-awesome.css +2669 -0
- data/docs/html/html/doxygen.css +1793 -0
- data/docs/html/html/doxygen.svg +26 -0
- data/docs/html/html/dynsections.js +121 -0
- data/docs/html/html/files.html +140 -0
- data/docs/html/html/files_dup.js +4 -0
- data/docs/html/html/folderclosed.png +0 -0
- data/docs/html/html/folderopen.png +0 -0
- data/docs/html/html/foundationallib_8h.html +17294 -0
- data/docs/html/html/foundationallib_8h.js +445 -0
- data/docs/html/html/foundationallib_8h__incl.map +15 -0
- data/docs/html/html/foundationallib_8h__incl.md5 +1 -0
- data/docs/html/html/foundationallib_8h__incl.svg +202 -0
- data/docs/html/html/foundationallib_8h_source.html +9125 -0
- data/docs/html/html/functions.html +188 -0
- data/docs/html/html/functions_vars.html +188 -0
- data/docs/html/html/globals.html +158 -0
- data/docs/html/html/globals_b.html +137 -0
- data/docs/html/html/globals_c.html +173 -0
- data/docs/html/html/globals_d.html +185 -0
- data/docs/html/html/globals_defs.html +361 -0
- data/docs/html/html/globals_dup.js +19 -0
- data/docs/html/html/globals_e.html +221 -0
- data/docs/html/html/globals_f.html +560 -0
- data/docs/html/html/globals_func.html +158 -0
- data/docs/html/html/globals_func.js +19 -0
- data/docs/html/html/globals_func_b.html +137 -0
- data/docs/html/html/globals_func_c.html +173 -0
- data/docs/html/html/globals_func_d.html +179 -0
- data/docs/html/html/globals_func_e.html +218 -0
- data/docs/html/html/globals_func_f.html +341 -0
- data/docs/html/html/globals_func_g.html +140 -0
- data/docs/html/html/globals_func_i.html +188 -0
- data/docs/html/html/globals_func_j.html +137 -0
- data/docs/html/html/globals_func_l.html +152 -0
- data/docs/html/html/globals_func_m.html +152 -0
- data/docs/html/html/globals_func_p.html +374 -0
- data/docs/html/html/globals_func_r.html +194 -0
- data/docs/html/html/globals_func_s.html +386 -0
- data/docs/html/html/globals_func_u.html +140 -0
- data/docs/html/html/globals_func_w.html +140 -0
- data/docs/html/html/globals_g.html +140 -0
- data/docs/html/html/globals_i.html +188 -0
- data/docs/html/html/globals_j.html +137 -0
- data/docs/html/html/globals_l.html +152 -0
- data/docs/html/html/globals_m.html +152 -0
- data/docs/html/html/globals_p.html +374 -0
- data/docs/html/html/globals_r.html +194 -0
- data/docs/html/html/globals_s.html +389 -0
- data/docs/html/html/globals_type.html +144 -0
- data/docs/html/html/globals_u.html +140 -0
- data/docs/html/html/globals_vars.html +135 -0
- data/docs/html/html/globals_w.html +140 -0
- data/docs/html/html/graph_legend.html +194 -0
- data/docs/html/html/graph_legend.md5 +1 -0
- data/docs/html/html/graph_legend.svg +117 -0
- data/docs/html/html/index.html +134 -0
- data/docs/html/html/jquery.js +35 -0
- data/docs/html/html/logo.drawio.svg +1 -0
- data/docs/html/html/menu.js +51 -0
- data/docs/html/html/menudata.js +75 -0
- data/docs/html/html/nav_f.png +0 -0
- data/docs/html/html/nav_g.png +0 -0
- data/docs/html/html/nav_h.png +0 -0
- data/docs/html/html/navtree.css +146 -0
- data/docs/html/html/navtree.js +546 -0
- data/docs/html/html/navtreedata.js +57 -0
- data/docs/html/html/navtreeindex0.js +253 -0
- data/docs/html/html/navtreeindex1.js +253 -0
- data/docs/html/html/navtreeindex2.js +18 -0
- data/docs/html/html/open.png +0 -0
- data/docs/html/html/resize.js +140 -0
- data/docs/html/html/search/all_0.html +37 -0
- data/docs/html/html/search/all_0.js +12 -0
- data/docs/html/html/search/all_1.html +37 -0
- data/docs/html/html/search/all_1.js +4 -0
- data/docs/html/html/search/all_10.html +37 -0
- data/docs/html/html/search/all_10.js +6 -0
- data/docs/html/html/search/all_11.html +37 -0
- data/docs/html/html/search/all_11.js +5 -0
- data/docs/html/html/search/all_12.html +37 -0
- data/docs/html/html/search/all_12.js +4 -0
- data/docs/html/html/search/all_13.html +37 -0
- data/docs/html/html/search/all_13.js +5 -0
- data/docs/html/html/search/all_2.html +37 -0
- data/docs/html/html/search/all_2.js +17 -0
- data/docs/html/html/search/all_3.html +37 -0
- data/docs/html/html/search/all_3.js +21 -0
- data/docs/html/html/search/all_4.html +37 -0
- data/docs/html/html/search/all_4.js +34 -0
- data/docs/html/html/search/all_5.html +37 -0
- data/docs/html/html/search/all_5.js +147 -0
- data/docs/html/html/search/all_6.html +37 -0
- data/docs/html/html/search/all_6.js +5 -0
- data/docs/html/html/search/all_7.html +37 -0
- data/docs/html/html/search/all_7.js +22 -0
- data/docs/html/html/search/all_8.html +37 -0
- data/docs/html/html/search/all_8.js +4 -0
- data/docs/html/html/search/all_9.html +37 -0
- data/docs/html/html/search/all_9.js +4 -0
- data/docs/html/html/search/all_a.html +37 -0
- data/docs/html/html/search/all_a.js +9 -0
- data/docs/html/html/search/all_b.html +37 -0
- data/docs/html/html/search/all_b.js +9 -0
- data/docs/html/html/search/all_c.html +37 -0
- data/docs/html/html/search/all_c.js +4 -0
- data/docs/html/html/search/all_d.html +37 -0
- data/docs/html/html/search/all_d.js +83 -0
- data/docs/html/html/search/all_e.html +37 -0
- data/docs/html/html/search/all_e.js +25 -0
- data/docs/html/html/search/all_f.html +37 -0
- data/docs/html/html/search/all_f.js +91 -0
- data/docs/html/html/search/classes_0.html +37 -0
- data/docs/html/html/search/classes_0.js +5 -0
- data/docs/html/html/search/classes_1.html +37 -0
- data/docs/html/html/search/classes_1.js +5 -0
- data/docs/html/html/search/classes_2.html +37 -0
- data/docs/html/html/search/classes_2.js +5 -0
- data/docs/html/html/search/classes_3.html +37 -0
- data/docs/html/html/search/classes_3.js +4 -0
- data/docs/html/html/search/close.svg +31 -0
- data/docs/html/html/search/defines_0.html +37 -0
- data/docs/html/html/search/defines_0.js +4 -0
- data/docs/html/html/search/defines_1.html +37 -0
- data/docs/html/html/search/defines_1.js +4 -0
- data/docs/html/html/search/defines_2.html +37 -0
- data/docs/html/html/search/defines_2.js +74 -0
- data/docs/html/html/search/files_0.html +37 -0
- data/docs/html/html/search/files_0.js +4 -0
- data/docs/html/html/search/functions_0.html +37 -0
- data/docs/html/html/search/functions_0.js +11 -0
- data/docs/html/html/search/functions_1.html +37 -0
- data/docs/html/html/search/functions_1.js +4 -0
- data/docs/html/html/search/functions_2.html +37 -0
- data/docs/html/html/search/functions_2.js +16 -0
- data/docs/html/html/search/functions_3.html +37 -0
- data/docs/html/html/search/functions_3.js +18 -0
- data/docs/html/html/search/functions_4.html +37 -0
- data/docs/html/html/search/functions_4.js +31 -0
- data/docs/html/html/search/functions_5.html +37 -0
- data/docs/html/html/search/functions_5.js +72 -0
- data/docs/html/html/search/functions_6.html +37 -0
- data/docs/html/html/search/functions_6.js +5 -0
- data/docs/html/html/search/functions_7.html +37 -0
- data/docs/html/html/search/functions_7.js +21 -0
- data/docs/html/html/search/functions_8.html +37 -0
- data/docs/html/html/search/functions_8.js +4 -0
- data/docs/html/html/search/functions_9.html +37 -0
- data/docs/html/html/search/functions_9.js +9 -0
- data/docs/html/html/search/functions_a.html +37 -0
- data/docs/html/html/search/functions_a.js +9 -0
- data/docs/html/html/search/functions_b.html +37 -0
- data/docs/html/html/search/functions_b.js +83 -0
- data/docs/html/html/search/functions_c.html +37 -0
- data/docs/html/html/search/functions_c.js +23 -0
- data/docs/html/html/search/functions_d.html +37 -0
- data/docs/html/html/search/functions_d.js +87 -0
- data/docs/html/html/search/functions_e.html +37 -0
- data/docs/html/html/search/functions_e.js +5 -0
- data/docs/html/html/search/functions_f.html +37 -0
- data/docs/html/html/search/functions_f.js +5 -0
- data/docs/html/html/search/mag_sel.svg +74 -0
- data/docs/html/html/search/nomatches.html +13 -0
- data/docs/html/html/search/search.css +257 -0
- data/docs/html/html/search/search.js +816 -0
- data/docs/html/html/search/search_l.png +0 -0
- data/docs/html/html/search/search_m.png +0 -0
- data/docs/html/html/search/search_r.png +0 -0
- data/docs/html/html/search/searchdata.js +33 -0
- data/docs/html/html/search/typedefs_0.html +37 -0
- data/docs/html/html/search/typedefs_0.js +4 -0
- data/docs/html/html/search/typedefs_1.html +37 -0
- data/docs/html/html/search/typedefs_1.js +5 -0
- data/docs/html/html/search/typedefs_2.html +37 -0
- data/docs/html/html/search/typedefs_2.js +4 -0
- data/docs/html/html/search/variables_0.html +37 -0
- data/docs/html/html/search/variables_0.js +4 -0
- data/docs/html/html/search/variables_1.html +37 -0
- data/docs/html/html/search/variables_1.js +4 -0
- data/docs/html/html/search/variables_2.html +37 -0
- data/docs/html/html/search/variables_2.js +5 -0
- data/docs/html/html/search/variables_3.html +37 -0
- data/docs/html/html/search/variables_3.js +5 -0
- data/docs/html/html/search/variables_4.html +37 -0
- data/docs/html/html/search/variables_4.js +4 -0
- data/docs/html/html/search/variables_5.html +37 -0
- data/docs/html/html/search/variables_5.js +4 -0
- data/docs/html/html/search/variables_6.html +37 -0
- data/docs/html/html/search/variables_6.js +4 -0
- data/docs/html/html/search/variables_7.html +37 -0
- data/docs/html/html/search/variables_7.js +5 -0
- data/docs/html/html/search/variables_8.html +37 -0
- data/docs/html/html/search/variables_8.js +5 -0
- data/docs/html/html/search/variables_9.html +37 -0
- data/docs/html/html/search/variables_9.js +5 -0
- data/docs/html/html/search/variables_a.html +37 -0
- data/docs/html/html/search/variables_a.js +4 -0
- data/docs/html/html/splitbar.png +0 -0
- data/docs/html/html/struct_dict.html +195 -0
- data/docs/html/html/struct_dict.js +6 -0
- data/docs/html/html/struct_dict_key_value.html +197 -0
- data/docs/html/html/struct_dict_key_value.js +6 -0
- data/docs/html/html/struct_frozen_dict.html +195 -0
- data/docs/html/html/struct_frozen_dict.js +6 -0
- data/docs/html/html/struct_frozen_set.html +195 -0
- data/docs/html/html/struct_frozen_set.js +6 -0
- data/docs/html/html/struct_set.html +195 -0
- data/docs/html/html/struct_set.js +6 -0
- data/docs/html/html/struct_set_key.html +179 -0
- data/docs/html/html/struct_set_key.js +5 -0
- data/docs/html/html/struct_thread_data.html +291 -0
- data/docs/html/html/struct_thread_data.js +12 -0
- data/docs/html/html/sync_off.png +0 -0
- data/docs/html/html/sync_on.png +0 -0
- data/docs/html/html/tab_a.png +0 -0
- data/docs/html/html/tab_b.png +0 -0
- data/docs/html/html/tab_h.png +0 -0
- data/docs/html/html/tab_s.png +0 -0
- data/docs/html/html/tabs.css +1 -0
- data/docs/html/html/toggle-alternative-theme.js +12 -0
- data/docs/img/screenshot.png +0 -0
- data/docs/img/testimage.png +0 -0
- data/docs/img/theme-variants-base.drawio.svg +117 -0
- data/docs/img/theme-variants-sidebar-only.drawio.svg +102 -0
- data/docs/logo.drawio.svg +1 -0
- data/docs/package.json +34 -0
- data/docs/src/foundationallib.h +13061 -0
- data/docs/toggle-alternative-theme.js +12 -0
- data/example_of_transpilation_comments.txt +167 -0
- data/foundationallib.gemspec +14 -0
- data/foundationallib.h +13999 -0
- data/platforms/README.md +17 -0
- data/platforms/header_and_separate_compilation_unit/Makefile +18 -0
- data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.c +13014 -0
- data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.h +316 -0
- data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.o +0 -0
- data/platforms/header_and_separate_compilation_unit/non_inline_example +0 -0
- data/platforms/header_and_separate_compilation_unit/non_inline_example.c +11 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/Makefile +18 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.c +13014 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.h +317 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.o +0 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/non_inline_example +0 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/non_inline_example.c +11 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/wont_compile.c +8 -0
- data/tests/decoupled_thorough_tests +0 -0
- data/tests/decoupled_thorough_tests.c +95 -0
- data/tests/decoupled_thorough_tests.exe +0 -0
- data/tests/decoupled_thorough_tests32 +0 -0
- data/tests/deps_for_testing +9 -0
- data/tests/deps_for_testing.sh +23 -0
- data/tests/destination_file.txt +1 -0
- data/tests/ex_ample.txt +1 -0
- data/tests/existing_file.txt +127 -0
- data/tests/lib_and_tests +0 -0
- data/tests/lib_and_tests.c +15920 -0
- data/tests/lib_and_tests.exe +0 -0
- data/tests/lib_and_tests32 +0 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_append_string_to_array.c +33 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_append_string_to_array_no_initial_alloc.c +51 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_array_total_string_length.c +25 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_arraydup.c +33 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_calculate_average_in_int_array.c +70 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_calculate_sum_in_int_array.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_common_prefix_length.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_common_suffix_length.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_five_strings.c +32 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_four_strings.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_string_array.c +28 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_strings.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_three_strings.c +43 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_count_occurrences_of_substr.c +21 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_count_occurrences_of_substr_len.c +66 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_add.c +49 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_del_key.c +26 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_del_keys.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_del_values.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_destructor.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_get.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_get_check.c +75 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_hash.c +18 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_iter.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_new_instance.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_reserve_more.c +21 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_resize.c +8 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_size.c +79 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_to_array.c +26 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_to_string.c +29 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dup_format.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_ends_with.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_char_ptrs.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_chars.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_double_ptrs.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_doubles.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_float_ptrs.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_floats.c +45 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_int_ptrs.c +51 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ints.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_long_long_ptrs.c +27 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_long_longs.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_long_ptrs.c +66 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_longs.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_short_ptrs.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_shorts.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_size_t_ptrs.c +62 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_size_ts.c +62 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uchar_ptrs.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uchars.c +60 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uint_ptrs.c +37 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uints.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulong_long_ptrs.c +56 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulong_longs.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulong_ptrs.c +38 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulongs.c +37 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ushort_ptrs.c +30 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ushorts.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_strings.c +45 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_filter.c +59 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_filter_int.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_first_of.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_last_of.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_max_int_in_array.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_min_int_in_array.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_first_non_repeating_char.c +42 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_format_string.c +68 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_free_array.c +63 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_free_string_array.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_del_keys.c +28 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_del_values.c +64 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_destructor.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_get.c +27 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_get_check.c +32 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_new_instance.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_size.c +33 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_to_array.c +51 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_to_string.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_del_keys.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_destructor.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_in.c +70 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_iter.c +71 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_new_instance.c +26 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_size.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_to_array.c +70 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_to_string.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_generate_range.c +62 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_index_of_char.c +77 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_int_to_string.c +54 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_alphanumeric.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_array_digit.c +67 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_array_lower.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_array_upper.c +28 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_numeric.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_alpha.c +43 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_digit.c +54 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_lower.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_space.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_upper.c +72 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_valid_integer.c +16 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_valid_utf8.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_join.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_last_index_of_char.c +15 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_list_comprehension.c +95 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_list_comprehension_multithreaded.c +41 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_longest_common_prefix.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_longest_common_suffix.c +61 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_map.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_map_int.c +59 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_prepend_string_to_array.c +68 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_prepend_string_to_array_no_initial_alloc.c +57 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_rand_number_from_range_inclusive_signed.c +41 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_rand_number_from_range_inclusive_unsigned.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reduce.c +49 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reduce_int.c +44 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reject_array.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replace_all.c +73 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replace_all_with_callback.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replace_all_with_lens.c +61 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replicate.c +56 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_int_array.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_string.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_string_in_place.c +60 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_words.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_sample_strings.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_select_array.c +29 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_add.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_del_key.c +29 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_del_keys.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_destructor.c +31 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_hash.c +44 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_in.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_iter.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_new_instance.c +30 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_reserve_more.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_resize.c +37 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_size.c +42 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_to_array.c +41 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_to_string.c +81 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_shellescape.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_shuffle_strings_in_place.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_split.c +64 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_starts_with.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_str_to_double.c +32 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_array_uniq.c +60 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_array_uniq_adjacent.c +54 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_int.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_json.c +98 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_lowercase.c +73 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_title_case.c +80 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_uppercase.c +78 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_strip.c +84 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_trim_chars.c +85 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/testall.sh +15 -0
- data/tests/run_test_suite.sh +117 -0
- data/tests/source_file.txt +1 -0
- data/tests/test_log.txt +1047 -0
- data/tools/FUTURE +18 -0
- data/tools/HEADERS.h +316 -0
- data/tools/HEADERS_ONLY_FUNCTIONS.h +284 -0
- data/tools/HEADERS_WITH_PREFIX.h +33 -0
- data/tools/RSUB_LICENSE.txt +25 -0
- data/tools/benchmark_libc.c +263 -0
- data/tools/deprecated/GENERATE_CUSTOM_FOUNDATIONALLIB.sh.old +67 -0
- data/tools/deps_for_testing.sh +23 -0
- data/tools/documentation_generate +17 -0
- data/tools/foundationallib.h +13999 -0
- data/tools/funcs_c +15858 -0
- data/tools/funcs_c_with_tests.c +15920 -0
- data/tools/gen_video_new +444 -0
- data/tools/gen_video_new_times +41 -0
- data/tools/generate_promo_video_for_library.rb +19 -0
- data/tools/index.html +147 -0
- data/tools/lib.html +20 -0
- data/tools/lib2.html +22 -0
- data/tools/lib3.html +22 -0
- data/tools/lynx.rb +145 -0
- data/tools/make_image_of_docs +741 -0
- data/tools/pic.png +0 -0
- data/tools/pic2.png +0 -0
- data/tools/pic3.png +0 -0
- data/tools/play_with_string_replace_functions.c +236 -0
- data/tools/rsub +0 -0
- data/tools/rsub.c +501 -0
- data/tools/run_lib +365 -0
- data/tools/update +44 -0
- data/tools/with_tests +0 -0
- data/tools/with_tests32 +0 -0
- data/transpile_slow_scripting_into_c.rb +225 -0
- metadata +693 -0
Binary file
|
Binary file
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
int test_append_string_to_array()
|
4
|
+
{
|
5
|
+
const char **array = NULL;
|
6
|
+
size_t array_size = 0;
|
7
|
+
size_t array_current_alloc_size = 0;
|
8
|
+
|
9
|
+
// Test case 1: Append to empty array
|
10
|
+
const char *test_string_1 = "Hello";
|
11
|
+
int result = append_string_to_array(&array, &array_size, &array_current_alloc_size, test_string_1);
|
12
|
+
assert(result == 0);
|
13
|
+
assert(array_size == 1);
|
14
|
+
printf("Alloc size is %zu\n", array_current_alloc_size);
|
15
|
+
assert(array_current_alloc_size >= 1);
|
16
|
+
assert(strcmp(array[0], test_string_1) == 0);
|
17
|
+
|
18
|
+
// Test case 2: Append to non-empty array
|
19
|
+
const char *test_string_2 = "World";
|
20
|
+
result = append_string_to_array(&array, &array_size, &array_current_alloc_size, test_string_2);
|
21
|
+
assert(result == 0);
|
22
|
+
assert(array_size == 2);
|
23
|
+
assert(array_current_alloc_size >= 2);
|
24
|
+
assert(strcmp(array[1], test_string_2) == 0);
|
25
|
+
|
26
|
+
return 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
int main()
|
30
|
+
{
|
31
|
+
test_append_string_to_array();
|
32
|
+
return 0;
|
33
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
void test_append_string_to_array_no_initial_alloc()
|
4
|
+
{
|
5
|
+
const char **array = NULL;
|
6
|
+
size_t array_size = 0;
|
7
|
+
size_t array_current_alloc_size = 0;
|
8
|
+
|
9
|
+
// Test empty array with initial allocation size other than 0
|
10
|
+
{
|
11
|
+
const char *new_string = "Test String 1";
|
12
|
+
int result = append_string_to_array_no_initial_alloc(&array, &array_size, &array_current_alloc_size, new_string);
|
13
|
+
assert(result == 0);
|
14
|
+
assert(array_size == 1);
|
15
|
+
assert(array_current_alloc_size > 0);
|
16
|
+
assert(strcmp(array[0], new_string) == 0);
|
17
|
+
}
|
18
|
+
|
19
|
+
// Test adding multiple strings
|
20
|
+
{
|
21
|
+
const char *new_string = "Test String 2";
|
22
|
+
int result = append_string_to_array_no_initial_alloc(&array, &array_size, &array_current_alloc_size, new_string);
|
23
|
+
assert(result == 0);
|
24
|
+
assert(array_size == 2);
|
25
|
+
assert(array_current_alloc_size > 0);
|
26
|
+
assert(strcmp(array[1], new_string) == 0);
|
27
|
+
}
|
28
|
+
|
29
|
+
// Test error when allocating size is 0
|
30
|
+
{
|
31
|
+
array_current_alloc_size = 0;
|
32
|
+
const char *new_string = "Test String 3";
|
33
|
+
int result = append_string_to_array_no_initial_alloc(&array, &array_size, &array_current_alloc_size, new_string);
|
34
|
+
assert(result == -1);
|
35
|
+
}
|
36
|
+
|
37
|
+
// Free memory
|
38
|
+
for (size_t i = 0; i < array_size; i++)
|
39
|
+
{
|
40
|
+
free((void *)array[i]);
|
41
|
+
}
|
42
|
+
free(array);
|
43
|
+
array = NULL;
|
44
|
+
}
|
45
|
+
|
46
|
+
int main()
|
47
|
+
{
|
48
|
+
test_append_string_to_array_no_initial_alloc();
|
49
|
+
printf("All tests passed successfully!\n");
|
50
|
+
return 0;
|
51
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
void test_array_total_string_length()
|
5
|
+
{
|
6
|
+
const char *array1[] = {"abc", "def", "ghi"};
|
7
|
+
const char *array2[] = {"hello", "world"};
|
8
|
+
const char *array3[] = {"", "", ""};
|
9
|
+
const char *array4[] = {NULL, "test", "string"};
|
10
|
+
const char *array5[] = {"this is a test", "of the array", "of strings"};
|
11
|
+
|
12
|
+
assert(array_total_string_length(array1, 3) == 9);
|
13
|
+
assert(array_total_string_length(array2, 2) == 10);
|
14
|
+
assert(array_total_string_length(array3, 3) == 0);
|
15
|
+
assert(array_total_string_length(array4, 3) == 11);
|
16
|
+
assert(array_total_string_length(array5, 3) == 31);
|
17
|
+
}
|
18
|
+
|
19
|
+
int main()
|
20
|
+
{
|
21
|
+
test_array_total_string_length();
|
22
|
+
printf("All tests passed!\n");
|
23
|
+
|
24
|
+
return 0;
|
25
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
// Test cases
|
5
|
+
void test_arraydup()
|
6
|
+
{
|
7
|
+
int source[] = {1, 2, 3, 4, 5};
|
8
|
+
int num_elements = 5;
|
9
|
+
|
10
|
+
// Test case 1: Test duplication of integers
|
11
|
+
int *result = (int *)arraydup(source, num_elements, sizeof(int));
|
12
|
+
for (int i = 0; i < num_elements; i++)
|
13
|
+
{
|
14
|
+
assert(result[i] == source[i]);
|
15
|
+
}
|
16
|
+
free(result);
|
17
|
+
|
18
|
+
// Test case 2: Test duplication of characters
|
19
|
+
char source_chars[] = {'a', 'b', 'c', 'd', 'e'};
|
20
|
+
char *result_chars = (char *)arraydup(source_chars, num_elements, sizeof(char));
|
21
|
+
for (int i = 0; i < num_elements; i++)
|
22
|
+
{
|
23
|
+
assert(result_chars[i] == source_chars[i]);
|
24
|
+
}
|
25
|
+
free(result_chars);
|
26
|
+
}
|
27
|
+
|
28
|
+
int main()
|
29
|
+
{
|
30
|
+
test_arraydup();
|
31
|
+
printf("All test cases passed!\n");
|
32
|
+
return 0;
|
33
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
// Function to be tested
|
5
|
+
double calculate_average_in_int_array(const int *array, size_t size);
|
6
|
+
|
7
|
+
// Test cases
|
8
|
+
void test_empty_array()
|
9
|
+
{
|
10
|
+
int array[] = {};
|
11
|
+
size_t size = 0;
|
12
|
+
double result = calculate_average_in_int_array(array, size);
|
13
|
+
assert(result == 0.0);
|
14
|
+
}
|
15
|
+
|
16
|
+
void test_single_element_array()
|
17
|
+
{
|
18
|
+
int array[] = {5};
|
19
|
+
size_t size = 1;
|
20
|
+
double result = calculate_average_in_int_array(array, size);
|
21
|
+
assert(result == 5.0);
|
22
|
+
}
|
23
|
+
|
24
|
+
void test_positive_numbers_array()
|
25
|
+
{
|
26
|
+
int array[] = {1, 2, 3, 4, 5};
|
27
|
+
size_t size = 5;
|
28
|
+
double result = calculate_average_in_int_array(array, size);
|
29
|
+
assert(result == 3.0);
|
30
|
+
}
|
31
|
+
|
32
|
+
void test_negative_numbers_array()
|
33
|
+
{
|
34
|
+
int array[] = {-3, -1, 2, 4, 6};
|
35
|
+
size_t size = 5;
|
36
|
+
double result = calculate_average_in_int_array(array, size);
|
37
|
+
assert(result == 1.6);
|
38
|
+
}
|
39
|
+
|
40
|
+
void test_mixed_numbers_array()
|
41
|
+
{
|
42
|
+
int array[] = {-2, 5, -8, 10, 4};
|
43
|
+
size_t size = 5;
|
44
|
+
double result = calculate_average_in_int_array(array, size);
|
45
|
+
assert(result == 1.8);
|
46
|
+
}
|
47
|
+
|
48
|
+
void test_large_numbers_array()
|
49
|
+
{
|
50
|
+
int array[10000];
|
51
|
+
for (int i = 0; i < 10000; i++)
|
52
|
+
{
|
53
|
+
array[i] = i * 2;
|
54
|
+
}
|
55
|
+
size_t size = 10000;
|
56
|
+
double result = calculate_average_in_int_array(array, size);
|
57
|
+
assert(result == 9999.0);
|
58
|
+
}
|
59
|
+
|
60
|
+
int main()
|
61
|
+
{
|
62
|
+
test_empty_array();
|
63
|
+
test_single_element_array();
|
64
|
+
test_positive_numbers_array();
|
65
|
+
test_negative_numbers_array();
|
66
|
+
test_mixed_numbers_array();
|
67
|
+
test_large_numbers_array();
|
68
|
+
|
69
|
+
return 0;
|
70
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
FOUNDATIONAL_LIB_FUNC int calculate_sum_in_int_array(const int *array, size_t size)
|
4
|
+
{
|
5
|
+
int sum = 0;
|
6
|
+
for (size_t i = 0; i < size; i++)
|
7
|
+
{
|
8
|
+
sum += array[i];
|
9
|
+
}
|
10
|
+
return sum;
|
11
|
+
}
|
12
|
+
|
13
|
+
int main()
|
14
|
+
{
|
15
|
+
// Test Case 1: Empty array
|
16
|
+
const int arr1[] = {};
|
17
|
+
assert(calculate_sum_in_int_array(arr1, 0) == 0);
|
18
|
+
|
19
|
+
// Test Case 2: Array with one element
|
20
|
+
const int arr2[] = {5};
|
21
|
+
assert(calculate_sum_in_int_array(arr2, 1) == 5);
|
22
|
+
|
23
|
+
// Test Case 3: Array with positive integers
|
24
|
+
const int arr3[] = {1, 2, 3, 4, 5};
|
25
|
+
assert(calculate_sum_in_int_array(arr3, 5) == 15);
|
26
|
+
|
27
|
+
// Test Case 4: Array with negative integers
|
28
|
+
const int arr4[] = {-1, -2, -3, -4, -5};
|
29
|
+
assert(calculate_sum_in_int_array(arr4, 5) == -15);
|
30
|
+
|
31
|
+
// Test Case 5: Array with mixed positive and negative integers
|
32
|
+
const int arr5[] = {1, -2, 3, -4, 5};
|
33
|
+
assert(calculate_sum_in_int_array(arr5, 5) == 3);
|
34
|
+
|
35
|
+
// Test Case 6: Array with maximum size
|
36
|
+
const int max_size = 1000000; // Maximum size for array
|
37
|
+
int arr6[max_size];
|
38
|
+
for (int i = 0; i < max_size; i++)
|
39
|
+
{
|
40
|
+
arr6[i] = 1;
|
41
|
+
}
|
42
|
+
assert(calculate_sum_in_int_array(arr6, max_size) == max_size);
|
43
|
+
|
44
|
+
printf("All test cases passed successfully!\n");
|
45
|
+
|
46
|
+
return 0;
|
47
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
int main()
|
5
|
+
{
|
6
|
+
// Test cases
|
7
|
+
assert(common_prefix_length("abcdef", "abcde") == 5);
|
8
|
+
assert(common_prefix_length("abc", "abcde") == 3);
|
9
|
+
assert(common_prefix_length("abcdef", "xyz") == 0);
|
10
|
+
assert(common_prefix_length("abc", "abcdef") == 3);
|
11
|
+
assert(common_prefix_length("", "") == 0);
|
12
|
+
assert(common_prefix_length("abc", "abc") == 3);
|
13
|
+
assert(common_prefix_length("a", "b") == 0);
|
14
|
+
assert(common_prefix_length("abc", "") == 0);
|
15
|
+
|
16
|
+
// Additional corner cases
|
17
|
+
assert(common_prefix_length(NULL, "abc") == 0);
|
18
|
+
assert(common_prefix_length("abc", NULL) == 0);
|
19
|
+
assert(common_prefix_length(NULL, NULL) == 0);
|
20
|
+
|
21
|
+
printf("All tests passed!\n");
|
22
|
+
return 0;
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
void test_common_suffix_length()
|
4
|
+
{
|
5
|
+
// Test cases
|
6
|
+
assert(common_suffix_length("hello", "world") == 0);
|
7
|
+
assert(common_suffix_length("hello", "hello") == 5);
|
8
|
+
assert(common_suffix_length("hello", "o") == 1);
|
9
|
+
assert(common_suffix_length("", "") == 0);
|
10
|
+
assert(common_suffix_length("abc", "def") == 0);
|
11
|
+
assert(common_suffix_length("abcdef", "def") == 3);
|
12
|
+
assert(common_suffix_length("abcdef", "de") == 2);
|
13
|
+
assert(common_suffix_length("abcdef", "") == 0);
|
14
|
+
assert(common_suffix_length("", "abcdef") == 0);
|
15
|
+
assert(common_suffix_length("foo/bar", "bar") == 3);
|
16
|
+
}
|
17
|
+
|
18
|
+
int main()
|
19
|
+
{
|
20
|
+
test_common_suffix_length();
|
21
|
+
printf("All tests passed!\n");
|
22
|
+
return 0;
|
23
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
int main()
|
4
|
+
{
|
5
|
+
// Test case 1: Test with all empty strings
|
6
|
+
char *result1 = concatenate_five_strings("", "", "", "", "");
|
7
|
+
assert(strcmp(result1, "") == 0);
|
8
|
+
free(result1);
|
9
|
+
|
10
|
+
// Test case 2: Test with non-empty strings
|
11
|
+
char *result2 = concatenate_five_strings("Hello, ", "world", "!", " This is ", "a test!");
|
12
|
+
assert(strcmp(result2, "Hello, world! This is a test!") == 0);
|
13
|
+
free(result2);
|
14
|
+
|
15
|
+
// Test case 3: Test with one empty string
|
16
|
+
char *result3 = concatenate_five_strings("Hello, ", "world", "!", " This is ", "");
|
17
|
+
assert(strcmp(result3, "Hello, world! This is ") == 0);
|
18
|
+
free(result3);
|
19
|
+
|
20
|
+
// Test case 4: Test with long strings
|
21
|
+
char *result4 = concatenate_five_strings("Lorem ipsum dolor sit amet, ", "consectetur adipiscing elit. ", "Integer ", "nec ", "odio.");
|
22
|
+
assert(strcmp(result4, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio.") == 0);
|
23
|
+
free(result4);
|
24
|
+
|
25
|
+
// Test case 5: Test with NULL strings
|
26
|
+
char *result5 = concatenate_five_strings(NULL, "world", "!", " This is ", "a test!");
|
27
|
+
assert(result5 == NULL);
|
28
|
+
|
29
|
+
printf("All tests passed successfully!\n");
|
30
|
+
|
31
|
+
return 0;
|
32
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
// Test cases
|
3
|
+
void test_concatenate_four_strings()
|
4
|
+
{
|
5
|
+
// Test case 1: All empty strings
|
6
|
+
char *result1 = concatenate_four_strings("", "", "", "");
|
7
|
+
assert(result1 != NULL);
|
8
|
+
assert(strcmp(result1, "") == 0);
|
9
|
+
free(result1);
|
10
|
+
|
11
|
+
// Test case 2: One empty string
|
12
|
+
char *result2 = concatenate_four_strings("abc", "", "def", "ghi");
|
13
|
+
assert(result2 != NULL);
|
14
|
+
assert(strcmp(result2, "abcdefghi") == 0);
|
15
|
+
free(result2);
|
16
|
+
|
17
|
+
// Test case 3: All non-empty strings
|
18
|
+
char *result3 = concatenate_four_strings("This ", "is a ", "test ", "string");
|
19
|
+
assert(result3 != NULL);
|
20
|
+
assert(strcmp(result3, "This is a test string") == 0);
|
21
|
+
free(result3);
|
22
|
+
|
23
|
+
// Test case 4: Testing long strings
|
24
|
+
char *result4 = concatenate_four_strings("Lorem ipsum ", "dolor sit amet, ", "consectetur adipiscing ", "elit");
|
25
|
+
assert(result4 != NULL);
|
26
|
+
assert(strcmp(result4, "Lorem ipsum dolor sit amet, consectetur adipiscing elit") == 0);
|
27
|
+
free(result4);
|
28
|
+
|
29
|
+
// Test case 5: Testing NULL input
|
30
|
+
char *result5 = concatenate_four_strings(NULL, "abc", "def", "ghi");
|
31
|
+
assert(result5 == NULL);
|
32
|
+
}
|
33
|
+
|
34
|
+
int main()
|
35
|
+
{
|
36
|
+
test_concatenate_four_strings();
|
37
|
+
printf("All tests passed!\n");
|
38
|
+
return 0;
|
39
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
// Test Suite
|
4
|
+
int main()
|
5
|
+
{
|
6
|
+
const char *test_strings1[] = {"Hello, ", "world!"};
|
7
|
+
char *result1 = concatenate_string_array(test_strings1, 2);
|
8
|
+
assert(strcmp(result1, "Hello, world!") == 0);
|
9
|
+
free(result1);
|
10
|
+
|
11
|
+
const char *test_strings2[] = {"This ", "is ", "a ", "test."};
|
12
|
+
char *result2 = concatenate_string_array(test_strings2, 4);
|
13
|
+
assert(strcmp(result2, "This is a test.") == 0);
|
14
|
+
free(result2);
|
15
|
+
|
16
|
+
const char *test_strings3[] = {"One string only."};
|
17
|
+
char *result3 = concatenate_string_array(test_strings3, 1);
|
18
|
+
assert(strcmp(result3, "One string only.") == 0);
|
19
|
+
free(result3);
|
20
|
+
|
21
|
+
const char *test_strings4[] = {NULL};
|
22
|
+
char *result4 = concatenate_string_array(test_strings4, 0);
|
23
|
+
assert(result4 == NULL);
|
24
|
+
free(result4);
|
25
|
+
|
26
|
+
printf("All tests passed!\n");
|
27
|
+
return 0;
|
28
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
void test_concatenate_strings()
|
5
|
+
{
|
6
|
+
// Test case 1: both strings are empty
|
7
|
+
const char *str1 = "";
|
8
|
+
const char *str2 = "";
|
9
|
+
char *result = concatenate_strings(str1, str2);
|
10
|
+
assert(strcmp(result, "") == 0);
|
11
|
+
free(result);
|
12
|
+
|
13
|
+
// Test case 2: one string is empty
|
14
|
+
str1 = "Hello";
|
15
|
+
str2 = "";
|
16
|
+
result = concatenate_strings(str1, str2);
|
17
|
+
assert(strcmp(result, "Hello") == 0);
|
18
|
+
free(result);
|
19
|
+
|
20
|
+
// Test case 3: both strings are non-empty
|
21
|
+
str1 = "Hello, ";
|
22
|
+
str2 = "World!";
|
23
|
+
result = concatenate_strings(str1, str2);
|
24
|
+
assert(strcmp(result, "Hello, World!") == 0);
|
25
|
+
free(result);
|
26
|
+
|
27
|
+
// Test case 4: one string is NULL
|
28
|
+
str1 = "Hello";
|
29
|
+
str2 = NULL;
|
30
|
+
result = concatenate_strings(str1, str2);
|
31
|
+
assert(result == NULL);
|
32
|
+
free(result);
|
33
|
+
|
34
|
+
// Test case 5: both strings are NULL
|
35
|
+
str1 = NULL;
|
36
|
+
str2 = NULL;
|
37
|
+
result = concatenate_strings(str1, str2);
|
38
|
+
assert(result == NULL);
|
39
|
+
free(result);
|
40
|
+
}
|
41
|
+
|
42
|
+
int main()
|
43
|
+
{
|
44
|
+
test_concatenate_strings();
|
45
|
+
printf("All tests passed!\n");
|
46
|
+
return 0;
|
47
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
void test_concatenate_three_strings()
|
5
|
+
{
|
6
|
+
// Test case 1: all empty strings
|
7
|
+
const char *str1 = "";
|
8
|
+
const char *str2 = "";
|
9
|
+
const char *str3 = "";
|
10
|
+
char *result = concatenate_three_strings(str1, str2, str3);
|
11
|
+
assert(strcmp(result, "") == 0);
|
12
|
+
free(result);
|
13
|
+
|
14
|
+
// Test case 2: one empty string
|
15
|
+
str1 = "hello";
|
16
|
+
str2 = "";
|
17
|
+
str3 = "world";
|
18
|
+
result = concatenate_three_strings(str1, str2, str3);
|
19
|
+
assert(strcmp(result, "helloworld") == 0);
|
20
|
+
free(result);
|
21
|
+
|
22
|
+
// Test case 3: all non-empty strings
|
23
|
+
str1 = "This ";
|
24
|
+
str2 = "is a ";
|
25
|
+
str3 = "test";
|
26
|
+
result = concatenate_three_strings(str1, str2, str3);
|
27
|
+
assert(strcmp(result, "This is a test") == 0);
|
28
|
+
free(result);
|
29
|
+
|
30
|
+
// Test case 4: memory allocation failure
|
31
|
+
char *ptr = (char *)malloc(1);
|
32
|
+
assert(ptr != NULL); // Ensure that memory allocation works fine
|
33
|
+
free(ptr);
|
34
|
+
ptr = (char *)malloc(1);
|
35
|
+
assert(ptr == NULL); // Ensure that memory allocation fails
|
36
|
+
}
|
37
|
+
|
38
|
+
int main()
|
39
|
+
{
|
40
|
+
test_concatenate_three_strings();
|
41
|
+
printf("All tests passed successfully.\n");
|
42
|
+
return 0;
|
43
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
int main()
|
5
|
+
{
|
6
|
+
// Test cases and assertions for count_occurrences_of_subst
|
7
|
+
assert(count_occurrences_of_substr("hellohellohello", "hello") == 3);
|
8
|
+
assert(count_occurrences_of_substr("abcabcabc", "abc") == 3);
|
9
|
+
assert(count_occurrences_of_substr("aaaaaaa", "aaa") == 4);
|
10
|
+
assert(count_occurrences_of_substr("not found", "abc") == 0);
|
11
|
+
assert(count_occurrences_of_substr("Case sensitive", "case") == 0);
|
12
|
+
assert(count_occurrences_of_substr("Case sensitive", "Case") == 1);
|
13
|
+
|
14
|
+
// Additional edge cases
|
15
|
+
assert(count_occurrences_of_substr("aaaaa", "aa") == 4);
|
16
|
+
assert(count_occurrences_of_substr("ababababa", "aba") == 3);
|
17
|
+
assert(count_occurrences_of_substr("", "abc") == 0);
|
18
|
+
assert(count_occurrences_of_substr("abc", "") == 0);
|
19
|
+
|
20
|
+
return 0;
|
21
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
// The function to be tested
|
5
|
+
size_t count_occurrences_of_substr_len(const char *string, size_t string_length, const char *substring, size_t substring_length);
|
6
|
+
|
7
|
+
void test_0_occurrences()
|
8
|
+
{
|
9
|
+
const char *str = "This is a test string.";
|
10
|
+
const char *sub = "apple";
|
11
|
+
size_t count = count_occurrences_of_substr_len(str, strlen(str), sub, strlen(sub));
|
12
|
+
assert(count == 0);
|
13
|
+
}
|
14
|
+
|
15
|
+
void test_1_occurrence()
|
16
|
+
{
|
17
|
+
const char *str = "This is a test string.";
|
18
|
+
const char *sub = "test";
|
19
|
+
size_t count = count_occurrences_of_substr_len(str, strlen(str), sub, strlen(sub));
|
20
|
+
assert(count == 1);
|
21
|
+
}
|
22
|
+
|
23
|
+
void test_case_sensitive()
|
24
|
+
{
|
25
|
+
const char *str = "This is a test string for testing.";
|
26
|
+
const char *sub = "Test";
|
27
|
+
size_t count = count_occurrences_of_substr_len(str, strlen(str), sub, strlen(sub));
|
28
|
+
assert(count == 0);
|
29
|
+
}
|
30
|
+
|
31
|
+
void test_overlapping_occurrences()
|
32
|
+
{
|
33
|
+
const char *str = "aaaaaa";
|
34
|
+
const char *sub = "aaa";
|
35
|
+
size_t count = count_occurrences_of_substr_len(str, strlen(str), sub, strlen(sub));
|
36
|
+
assert(count == 4);
|
37
|
+
}
|
38
|
+
|
39
|
+
void test_empty_string()
|
40
|
+
{
|
41
|
+
const char *str = "";
|
42
|
+
const char *sub = "test";
|
43
|
+
size_t count = count_occurrences_of_substr_len(str, strlen(str), sub, strlen(sub));
|
44
|
+
assert(count == 0);
|
45
|
+
}
|
46
|
+
|
47
|
+
void test_empty_substring()
|
48
|
+
{
|
49
|
+
const char *str = "This is a test string.";
|
50
|
+
const char *sub = "";
|
51
|
+
size_t count = count_occurrences_of_substr_len(str, strlen(str), sub, strlen(sub));
|
52
|
+
assert(count == strlen(str) + 1);
|
53
|
+
}
|
54
|
+
|
55
|
+
int main()
|
56
|
+
{
|
57
|
+
test_0_occurrences();
|
58
|
+
test_1_occurrence();
|
59
|
+
test_case_sensitive();
|
60
|
+
test_overlapping_occurrences();
|
61
|
+
test_empty_string();
|
62
|
+
test_empty_substring();
|
63
|
+
|
64
|
+
printf("All tests passed successfully!\n");
|
65
|
+
return 0;
|
66
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
// Define the dictionary structure
|
4
|
+
struct Dict
|
5
|
+
{
|
6
|
+
char *key;
|
7
|
+
void *value;
|
8
|
+
};
|
9
|
+
|
10
|
+
// Test function for dict_add
|
11
|
+
void test_dict_add()
|
12
|
+
{
|
13
|
+
// Create a new dictionary
|
14
|
+
struct Dict *dict = (struct Dict *)malloc(sizeof(struct Dict));
|
15
|
+
assert(dict != NULL);
|
16
|
+
|
17
|
+
// Test adding a key-value pair
|
18
|
+
const char *key1 = "key1";
|
19
|
+
int value1 = 10;
|
20
|
+
assert(dict_add(dict, key1, &value1) == 0);
|
21
|
+
assert(strcmp(dict->key, key1) == 0);
|
22
|
+
assert(*(int *)dict->value == value1);
|
23
|
+
|
24
|
+
// Test adding a duplicate key
|
25
|
+
const char *key2 = "key2";
|
26
|
+
int value2 = 20;
|
27
|
+
assert(dict_add(dict, key2, &value2) == 0);
|
28
|
+
assert(strcmp(dict->key, key2) == 0);
|
29
|
+
assert(*(int *)dict->value == value2);
|
30
|
+
|
31
|
+
// Test adding NULL key
|
32
|
+
assert(dict_add(dict, NULL, &value1) == -1);
|
33
|
+
|
34
|
+
// Test adding NULL value
|
35
|
+
const char *key3 = "key3";
|
36
|
+
assert(dict_add(dict, key3, NULL) == -1);
|
37
|
+
|
38
|
+
// Test adding to a NULL dictionary
|
39
|
+
assert(dict_add(NULL, key1, &value1) == -1);
|
40
|
+
|
41
|
+
free(dict);
|
42
|
+
}
|
43
|
+
|
44
|
+
int main()
|
45
|
+
{
|
46
|
+
test_dict_add();
|
47
|
+
printf("All tests passed successfully\n");
|
48
|
+
return 0;
|
49
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
int main()
|
5
|
+
{
|
6
|
+
// Test dictionary
|
7
|
+
struct Dict *test_dict = dict_new_instance();
|
8
|
+
struct Dict *test_dict2 = dict_new_instance();
|
9
|
+
|
10
|
+
// Test case 1: Deleting an existing key
|
11
|
+
dict_del_key(test_dict, "test_key");
|
12
|
+
|
13
|
+
assert(!dict_get(test_dict, "test_key"));
|
14
|
+
|
15
|
+
// Test case 2: Deleting a non-existing key
|
16
|
+
dict_del_key(test_dict2, "non_existing_key");
|
17
|
+
assert(!dict_get(test_dict2, "non_existing_key"));
|
18
|
+
|
19
|
+
// Add more test cases for edge and corner cases
|
20
|
+
|
21
|
+
printf("All test cases passed successfully!\n");
|
22
|
+
|
23
|
+
free(test_dict);
|
24
|
+
free(test_dict2);
|
25
|
+
return 0;
|
26
|
+
}
|