foundational_lib 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
@@ -0,0 +1,48 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
#include <stdlib.h>
|
6
|
+
#include <time.h>
|
7
|
+
|
8
|
+
int main()
|
9
|
+
{
|
10
|
+
const char *test_strings[] = {"Hello", "World", "This", "Is", "A", "Test"};
|
11
|
+
const size_t num_strings = sizeof(test_strings) / sizeof(test_strings[0]);
|
12
|
+
|
13
|
+
// Test 1: Check if the selected string is within the given array
|
14
|
+
const char *selected_string = sample_strings(test_strings, num_strings);
|
15
|
+
int found = 0;
|
16
|
+
for (size_t i = 0; i < num_strings; i++)
|
17
|
+
{
|
18
|
+
if (selected_string == test_strings[i])
|
19
|
+
{
|
20
|
+
found = 1;
|
21
|
+
break;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
assert(found && "Selected string is not in the given array");
|
25
|
+
|
26
|
+
// Test 2: Check if the returned pointer is not NULL
|
27
|
+
assert(selected_string != NULL && "Selected string pointer is NULL");
|
28
|
+
|
29
|
+
// Test 3: Check for correctness of the selected string
|
30
|
+
size_t selected_length = 0;
|
31
|
+
while (selected_string[selected_length] != '\0')
|
32
|
+
{
|
33
|
+
selected_length++;
|
34
|
+
}
|
35
|
+
int matching = 1;
|
36
|
+
for (size_t i = 0; i < selected_length; i++)
|
37
|
+
{
|
38
|
+
if (selected_string[i] != test_strings[0][i])
|
39
|
+
{
|
40
|
+
matching = 0;
|
41
|
+
break;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
assert(matching && "Selected string does not match with the original string in the array");
|
45
|
+
|
46
|
+
printf("All tests passed!\n");
|
47
|
+
return 0;
|
48
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
void test_select_array()
|
6
|
+
{
|
7
|
+
int source1[] = {1, 2, 3, 4, 5};
|
8
|
+
size_t result_size;
|
9
|
+
int *result1 = select_array(source1, 5, sizeof(int), even_condition, &result_size);
|
10
|
+
assert(result1[0] == 2);
|
11
|
+
assert(result1[1] == 4);
|
12
|
+
assert(result_size == 2);
|
13
|
+
free(result1);
|
14
|
+
|
15
|
+
int source2[] = {1, -2, 3, -4, 5};
|
16
|
+
int *result2 = select_array(source2, 5, sizeof(int), positive_condition, &result_size);
|
17
|
+
assert(result2[0] == 1);
|
18
|
+
assert(result2[1] == 3);
|
19
|
+
assert(result2[2] == 5);
|
20
|
+
assert(result_size == 3);
|
21
|
+
free(result2);
|
22
|
+
}
|
23
|
+
|
24
|
+
int main()
|
25
|
+
{
|
26
|
+
test_select_array();
|
27
|
+
printf("All tests passed!\n");
|
28
|
+
return 0;
|
29
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
|
7
|
+
struct Set
|
8
|
+
{
|
9
|
+
char *key;
|
10
|
+
struct Set *next;
|
11
|
+
};
|
12
|
+
|
13
|
+
FOUNDATIONAL_LIB_FUNC int set_add(struct Set *set, const char *key)
|
14
|
+
{
|
15
|
+
if (set == NULL || key == NULL)
|
16
|
+
{
|
17
|
+
return -1; // Error: NULL pointer
|
18
|
+
}
|
19
|
+
|
20
|
+
struct Set *new_set = (struct Set *)malloc(sizeof(struct Set));
|
21
|
+
if (new_set == NULL)
|
22
|
+
{
|
23
|
+
return -1; // Error: Memory allocation failed
|
24
|
+
}
|
25
|
+
|
26
|
+
new_set->key = strdup(key);
|
27
|
+
new_set->next = set->next;
|
28
|
+
set->next = new_set;
|
29
|
+
|
30
|
+
return 0; // Success
|
31
|
+
}
|
32
|
+
|
33
|
+
void test_set_add()
|
34
|
+
{
|
35
|
+
struct Set *set = (struct Set *)malloc(sizeof(struct Set));
|
36
|
+
assert(set_add(set, "key1") == -1); // Error: NULL pointer
|
37
|
+
free(set);
|
38
|
+
|
39
|
+
set = (struct Set *)malloc(sizeof(struct Set));
|
40
|
+
set->key = strdup("key1");
|
41
|
+
set->next = NULL;
|
42
|
+
assert(set_add(NULL, "key2") == -1); // Error: NULL pointer
|
43
|
+
free(set->key);
|
44
|
+
free(set);
|
45
|
+
|
46
|
+
set = (struct Set *)malloc(sizeof(struct Set));
|
47
|
+
set->key = strdup("key1");
|
48
|
+
set->next = NULL;
|
49
|
+
assert(set_add(set, NULL) == -1); // Error: NULL pointer
|
50
|
+
free(set->key);
|
51
|
+
free(set);
|
52
|
+
|
53
|
+
set = (struct Set *)malloc(sizeof(struct Set));
|
54
|
+
set->key = strdup("key1");
|
55
|
+
set->next = NULL;
|
56
|
+
assert(set_add(set, "key2") == 0); // Success
|
57
|
+
assert(strcmp(set->next->key, "key2") == 0);
|
58
|
+
free(set->next->key);
|
59
|
+
free(set->next);
|
60
|
+
free(set);
|
61
|
+
|
62
|
+
printf("All tests passed!\n");
|
63
|
+
}
|
64
|
+
|
65
|
+
int main()
|
66
|
+
{
|
67
|
+
test_set_add();
|
68
|
+
return 0;
|
69
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
// Test cases
|
6
|
+
void test_set_del_key()
|
7
|
+
{
|
8
|
+
struct Set set;
|
9
|
+
// initialize the set with some keys
|
10
|
+
|
11
|
+
// Test deleting a key that exists in the set
|
12
|
+
const char *existing_key = "existing_key";
|
13
|
+
set_del_key(&set, existing_key);
|
14
|
+
// assert that the key has been deleted from the set
|
15
|
+
assert(!has_key(&set, existing_key));
|
16
|
+
|
17
|
+
// Test deleting a key that does not exist in the set
|
18
|
+
const char *non_existing_key = "non_existing_key";
|
19
|
+
set_del_key(&set, non_existing_key);
|
20
|
+
// assert that the set remains unchanged
|
21
|
+
assert(get_size(&set) == initial_size);
|
22
|
+
}
|
23
|
+
|
24
|
+
int main()
|
25
|
+
{
|
26
|
+
test_set_del_key();
|
27
|
+
printf("All tests passed!\n");
|
28
|
+
return 0;
|
29
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
// Test suite for set_del_keys function
|
7
|
+
void test_set_del_keys()
|
8
|
+
{
|
9
|
+
// Test case 1: Deleting single key from an empty set
|
10
|
+
Set set1 = {NULL, 0};
|
11
|
+
set_del_keys(NULL);
|
12
|
+
assert(set1.size == 0);
|
13
|
+
|
14
|
+
// Test case 2: Deleting single key from a non-empty set
|
15
|
+
char *key1 = "key1";
|
16
|
+
Set set2 = {&key1, 1};
|
17
|
+
set_del_keys(&key1);
|
18
|
+
assert(set2.size == 0);
|
19
|
+
|
20
|
+
// Test case 3: Deleting multiple keys from a non-empty set
|
21
|
+
char *key2 = "key2";
|
22
|
+
char *key3 = "key3";
|
23
|
+
Set set3 = {&key1, 3};
|
24
|
+
set_del_keys(&key2);
|
25
|
+
set_del_keys(&key3);
|
26
|
+
assert(set3.size == 1);
|
27
|
+
|
28
|
+
printf("All test cases passed!\n");
|
29
|
+
}
|
30
|
+
|
31
|
+
int main()
|
32
|
+
{
|
33
|
+
test_set_del_keys();
|
34
|
+
return 0;
|
35
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdlib.h>
|
4
|
+
// Test case 1: Test setting destructor for an empty set
|
5
|
+
void test_set_destructor_empty_set()
|
6
|
+
{
|
7
|
+
struct Set *set = (struct Set *)malloc(sizeof(struct Set));
|
8
|
+
set_destructor(set);
|
9
|
+
// No assertions, just making sure it doesn't crash
|
10
|
+
free(set);
|
11
|
+
}
|
12
|
+
|
13
|
+
// Test case 2: Test setting destructor for a set with elements
|
14
|
+
void test_set_destructor_set_with_elements()
|
15
|
+
{
|
16
|
+
struct Set *set = (struct Set *)malloc(sizeof(struct Set));
|
17
|
+
// Initialize set with elements
|
18
|
+
set_destructor(set);
|
19
|
+
// No assertions, just making sure it doesn't crash
|
20
|
+
free(set);
|
21
|
+
}
|
22
|
+
|
23
|
+
int main()
|
24
|
+
{
|
25
|
+
test_set_destructor_empty_set();
|
26
|
+
test_set_destructor_set_with_elements();
|
27
|
+
// Add more test cases for corner cases here
|
28
|
+
|
29
|
+
printf("All tests passed successfully!\n");
|
30
|
+
return 0;
|
31
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
int main()
|
4
|
+
{
|
5
|
+
// Test cases
|
6
|
+
const char *testCases[] = {
|
7
|
+
"hello", // basic test case
|
8
|
+
"", // empty string
|
9
|
+
"1234567890", // numeric string
|
10
|
+
"abcdefghijklmnopqrstuvwxyz", // lowercase alphabets
|
11
|
+
"ABCDEFGHIJKLMNOPQRSTUVWXYZ", // uppercase alphabets
|
12
|
+
"!@#$%^&*()", // special characters
|
13
|
+
"12345abcde!", // combination of numbers and characters
|
14
|
+
"hello", // identical to first test case for collision
|
15
|
+
"world", // different from first test case for non-collision
|
16
|
+
};
|
17
|
+
|
18
|
+
size_t capacities[] = {
|
19
|
+
10, // small capacity
|
20
|
+
100, // medium capacity
|
21
|
+
1000, // large capacity
|
22
|
+
10000 // very large capacity
|
23
|
+
};
|
24
|
+
|
25
|
+
int numTestCases = sizeof(testCases) / sizeof(testCases[0]);
|
26
|
+
int numCapacities = sizeof(capacities) / sizeof(capacities[0]);
|
27
|
+
|
28
|
+
for (int i = 0; i < numTestCases; i++)
|
29
|
+
{
|
30
|
+
for (int j = 0; j < numCapacities; j++)
|
31
|
+
{
|
32
|
+
size_t hashValue = set_hash(testCases[i], capacities[j]);
|
33
|
+
|
34
|
+
printf("Hash value for '%s' with capacity %zu: %zu\n", testCases[i], capacities[j], hashValue);
|
35
|
+
|
36
|
+
// Test capacity range
|
37
|
+
assert(hashValue < capacities[j]);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
printf("All tests passed!\n");
|
42
|
+
|
43
|
+
return 0;
|
44
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdlib.h>
|
4
|
+
#include <string.h>
|
5
|
+
// Function to check if a key is present in the Set
|
6
|
+
int set_in(struct Set *set, const char *key)
|
7
|
+
{
|
8
|
+
for (int i = 0; i < set->size; i++)
|
9
|
+
{
|
10
|
+
if (strcmp(set->keys[i], key) == 0)
|
11
|
+
{
|
12
|
+
return 1; // Key is present
|
13
|
+
}
|
14
|
+
}
|
15
|
+
return 0; // Key is not present
|
16
|
+
}
|
17
|
+
|
18
|
+
int main()
|
19
|
+
{
|
20
|
+
// Create a new Set
|
21
|
+
struct Set *test_set = create_set();
|
22
|
+
|
23
|
+
// Test case 1: Set is empty
|
24
|
+
assert(set_in(test_set, "test1") == 0);
|
25
|
+
|
26
|
+
// Add keys to the set for further tests
|
27
|
+
add_to_set(test_set, "test1");
|
28
|
+
add_to_set(test_set, "test2");
|
29
|
+
add_to_set(test_set, "test3");
|
30
|
+
|
31
|
+
// Test case 2: Key present in the set
|
32
|
+
assert(set_in(test_set, "test2") == 1);
|
33
|
+
|
34
|
+
// Test case 3: Key not present in the set
|
35
|
+
assert(set_in(test_set, "test4") == 0);
|
36
|
+
|
37
|
+
// Test case 4: Set is full
|
38
|
+
struct Set *full_set = create_set();
|
39
|
+
for (int i = 0; i < 100; i++)
|
40
|
+
{
|
41
|
+
char key[10];
|
42
|
+
snprintf(key, 10, "key%d", i);
|
43
|
+
add_to_set(full_set, key);
|
44
|
+
}
|
45
|
+
assert(set_in(full_set, "key99") == 1);
|
46
|
+
assert(set_in(full_set, "key100") == 0);
|
47
|
+
|
48
|
+
// All tests passed
|
49
|
+
printf("All tests passed!\n");
|
50
|
+
|
51
|
+
return 0;
|
52
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
// Define the callback function for testing
|
4
|
+
void test_callback(char *key)
|
5
|
+
{
|
6
|
+
// For testing purposes, we will simply print the key and value
|
7
|
+
printf("Key: %s, Value: %p\n", key, value);
|
8
|
+
}
|
9
|
+
|
10
|
+
// Define the test suite
|
11
|
+
void run_tests()
|
12
|
+
{
|
13
|
+
// Create a sample setionary for testing
|
14
|
+
struct Set *set = set_new_instance();
|
15
|
+
set_iter(set, &test_callback);
|
16
|
+
set_destructor(set);
|
17
|
+
|
18
|
+
struct Set *set = set_new_instance();
|
19
|
+
set_add(set, "foo");
|
20
|
+
set_iter(set, &test_callback);
|
21
|
+
set_destructor(set);
|
22
|
+
|
23
|
+
struct Set *set = set_new_instance();
|
24
|
+
set_add(set, "fooz");
|
25
|
+
set_add(set, "dsdsfooz");
|
26
|
+
set_iter(set, &test_callback);
|
27
|
+
set_destructor(set);
|
28
|
+
|
29
|
+
struct set *set = set_new_instance();
|
30
|
+
set_add(set, "fooz", "barz");
|
31
|
+
set_add(set, "dsdsfooz");
|
32
|
+
set_add(set, "dsdsfoozssssssssss");
|
33
|
+
set_iter(set, &test_callback);
|
34
|
+
set_destructor(set);
|
35
|
+
|
36
|
+
struct set *set = set_new_instance();
|
37
|
+
set_add(set, "fooz", "barz");
|
38
|
+
set_add(set, "dsdsfoozssssssssssssssssssssssssssssssss");
|
39
|
+
set_add(set, "dsdsfoozssssssssss");
|
40
|
+
set_add(set, "foozssssssssssssssssssssssssssssssssssssssssssss", "barz");
|
41
|
+
set_add(set, "dsdsfoozssssssssssssssssssssssssss");
|
42
|
+
set_add(set, "dsdsfoozssssssssss");
|
43
|
+
set_add(set, "foozssssssssssssssssssssssssssssss", "barz");
|
44
|
+
set_add(set, "dsdsfoozdasdsadasdsadsa");
|
45
|
+
set_add(set, "dsdsfoozssssssssss");
|
46
|
+
set_add(set, "foozdasdasdasdas", "barz");
|
47
|
+
set_add(set, "dsdsfoozca");
|
48
|
+
set_add(set, "dsdsfoozssssssssss");
|
49
|
+
set_add(set, "foozsssssssssssssssssssssssssssss", "barz");
|
50
|
+
set_add(set, "dsdsfoozqqqqqqqqqqqqqqqqqqqqqqqq");
|
51
|
+
set_add(set, "dsdsfoozssssssssssqqqqqqqqqqqqqqqq");
|
52
|
+
set_add(set, "foozqqqqqqqqqqqq", "barz");
|
53
|
+
set_add(set, "dsdsfoozaaaaaaaaaaa");
|
54
|
+
set_add(set, "dsdsfoozssssssssss");
|
55
|
+
set_add(set, "foozssssssssssssssssssssssssssss", "barz");
|
56
|
+
set_add(set, "dsdsfooz");
|
57
|
+
set_add(set, "dddddddddddsdsfoozssssssssss");
|
58
|
+
set_add(set, "foozsssssssssss", "barz");
|
59
|
+
set_add(set, "dsdsdsfooz");
|
60
|
+
set_add(set, "dsdsfoozssssssssssds");
|
61
|
+
set_iter(set, &test_callback);
|
62
|
+
set_destructor(set);
|
63
|
+
}
|
64
|
+
|
65
|
+
int main()
|
66
|
+
{
|
67
|
+
run_tests();
|
68
|
+
return 0;
|
69
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
|
6
|
+
// Test cases for set_new_instance function
|
7
|
+
void test_set_new_instance()
|
8
|
+
{
|
9
|
+
struct Set *set = set_new_instance();
|
10
|
+
|
11
|
+
// Assert that the set instance is not NULL
|
12
|
+
assert(set != NULL);
|
13
|
+
|
14
|
+
// Add more test cases here if necessary
|
15
|
+
|
16
|
+
// Free the memory allocated for the set instance
|
17
|
+
free(set);
|
18
|
+
}
|
19
|
+
|
20
|
+
// Main function to run the test cases
|
21
|
+
int main()
|
22
|
+
{
|
23
|
+
// Run the test case for set_new_instance
|
24
|
+
test_set_new_instance();
|
25
|
+
|
26
|
+
// Print a message indicating that all test cases passed
|
27
|
+
printf("All test cases passed for set_new_instance function\n");
|
28
|
+
|
29
|
+
return 0;
|
30
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
int main()
|
5
|
+
{
|
6
|
+
// Create a new Set instance
|
7
|
+
struct Set *set = create_set();
|
8
|
+
|
9
|
+
// Test case 1: Reserving additional space for 0 new elements
|
10
|
+
assert(set_reserve_more(set, 0) == 0);
|
11
|
+
|
12
|
+
// Test case 2: Reserving additional space for 10 new elements
|
13
|
+
assert(set_reserve_more(set, 10) == 0);
|
14
|
+
|
15
|
+
// Test case 3: Reserving additional space for a large number of new elements
|
16
|
+
assert(set_reserve_more(set, 100000) == 0);
|
17
|
+
|
18
|
+
// Test case 4: Reserving additional space for a negative number of new elements
|
19
|
+
assert(set_reserve_more(set, -5) == -1);
|
20
|
+
|
21
|
+
// Test case 5: Reserving additional space for a very large number of new elements
|
22
|
+
assert(set_reserve_more(set, 1000000000) == 0);
|
23
|
+
|
24
|
+
// Test case 6: Reserving additional space for the maximum possible number of new elements
|
25
|
+
assert(set_reserve_more(set, SIZE_MAX) == 0);
|
26
|
+
|
27
|
+
// Test case 7: Reserving additional space for an excessively large number of new elements
|
28
|
+
// (Assuming SIZE_MAX is the maximum value for size_t)
|
29
|
+
assert(set_reserve_more(set, SIZE_MAX + 1) == -1);
|
30
|
+
|
31
|
+
// Clean up and free the Set instance
|
32
|
+
destroy_set(set);
|
33
|
+
|
34
|
+
printf("All tests passed!\n");
|
35
|
+
return 0;
|
36
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
int main()
|
6
|
+
{
|
7
|
+
// Test case 1: Resize a Set with initial size 3
|
8
|
+
Set *set1 = set_init(3);
|
9
|
+
assert(set1 != NULL);
|
10
|
+
assert(set1->size == 0);
|
11
|
+
assert(set1->capacity == 3);
|
12
|
+
assert(set_resize(set1) == 1);
|
13
|
+
assert(set1->capacity == 6);
|
14
|
+
|
15
|
+
// Test case 2: Resize a Set with initial size 0
|
16
|
+
Set *set2 = set_init(0);
|
17
|
+
assert(set2 != NULL);
|
18
|
+
assert(set2->size == 0);
|
19
|
+
assert(set2->capacity == 0);
|
20
|
+
assert(set_resize(set2) == 1);
|
21
|
+
assert(set2->capacity == 0); // Should remain 0
|
22
|
+
|
23
|
+
// Test case 3: Resize a NULL Set
|
24
|
+
Set *set3 = NULL;
|
25
|
+
assert(set_resize(set3) == 0);
|
26
|
+
|
27
|
+
printf("All tests passed successfully.\n");
|
28
|
+
|
29
|
+
// Free memory and return
|
30
|
+
if (set1)
|
31
|
+
free(set1->data);
|
32
|
+
free(set1);
|
33
|
+
if (set2)
|
34
|
+
free(set2->data);
|
35
|
+
free(set2);
|
36
|
+
return 0;
|
37
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
struct Set
|
6
|
+
{
|
7
|
+
int elements[100];
|
8
|
+
size_t size;
|
9
|
+
};
|
10
|
+
|
11
|
+
typedef struct Set Set;
|
12
|
+
|
13
|
+
size_t set_size(Set *set) { return set->size; }
|
14
|
+
|
15
|
+
int main()
|
16
|
+
{
|
17
|
+
Set set1 = {{1, 2, 3, 4, 5}, 5};
|
18
|
+
Set set2 = {{}, 0};
|
19
|
+
|
20
|
+
// Test case 1: Test with non-empty set
|
21
|
+
assert(set_size(&set1) == 5);
|
22
|
+
|
23
|
+
// Test case 2: Test with empty set
|
24
|
+
assert(set_size(&set2) == 0);
|
25
|
+
|
26
|
+
// Test case 3: Test with set of size 1
|
27
|
+
Set set3 = {{10}, 1};
|
28
|
+
assert(set_size(&set3) == 1);
|
29
|
+
|
30
|
+
// Test case 4: Test with set of size 100
|
31
|
+
Set set4;
|
32
|
+
for (int i = 0; i < 100; i++)
|
33
|
+
{
|
34
|
+
set4.elements[i] = i + 1;
|
35
|
+
}
|
36
|
+
set4.size = 100;
|
37
|
+
assert(set_size(&set4) == 100);
|
38
|
+
|
39
|
+
printf("All test cases passed!\n");
|
40
|
+
|
41
|
+
return 0;
|
42
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
#include <stdlib.h>
|
6
|
+
#include <string.h>
|
7
|
+
// Test function
|
8
|
+
int test_set_to_array()
|
9
|
+
{
|
10
|
+
// Test case 1: empty set
|
11
|
+
struct Set *empty_set = NULL;
|
12
|
+
char **empty_keys;
|
13
|
+
size_t empty_size_of_keys;
|
14
|
+
int result1 = set_to_array(empty_set, &empty_keys, &empty_size_of_keys);
|
15
|
+
assert(result1 == 1);
|
16
|
+
assert(empty_keys == NULL);
|
17
|
+
assert(empty_size_of_keys == 0);
|
18
|
+
|
19
|
+
// Test case 2: non-empty set
|
20
|
+
struct Set *non_empty_set = NULL; // Initialize non-empty set with some values
|
21
|
+
char **non_empty_keys;
|
22
|
+
size_t non_empty_size_of_keys;
|
23
|
+
int result2 = set_to_array(non_empty_set, &non_empty_keys, &non_empty_size_of_keys);
|
24
|
+
// Add assertions for expected values in non_empty_keys and non_empty_size_of_keys
|
25
|
+
|
26
|
+
return 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
int main()
|
30
|
+
{
|
31
|
+
int res = test_set_to_array();
|
32
|
+
if (res == 0)
|
33
|
+
{
|
34
|
+
printf("All tests passed\n");
|
35
|
+
}
|
36
|
+
else
|
37
|
+
{
|
38
|
+
printf("Some tests failed\n");
|
39
|
+
}
|
40
|
+
return 0;
|
41
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
|
6
|
+
struct Set
|
7
|
+
{
|
8
|
+
int *elements;
|
9
|
+
int size;
|
10
|
+
};
|
11
|
+
|
12
|
+
char *set_to_string(struct Set *set)
|
13
|
+
{
|
14
|
+
// Assuming the set is not empty
|
15
|
+
char *str = malloc(set->size * 2 + 3);
|
16
|
+
if (str == NULL)
|
17
|
+
{
|
18
|
+
return NULL; // Memory allocation failed
|
19
|
+
}
|
20
|
+
str[0] = '{';
|
21
|
+
int index = 1;
|
22
|
+
for (int i = 0; i < set->size; i++)
|
23
|
+
{
|
24
|
+
index += sprintf(&str[index], "%d", set->elements[i]);
|
25
|
+
if (i != set->size - 1)
|
26
|
+
{
|
27
|
+
str[index++] = ',';
|
28
|
+
str[index++] = ' ';
|
29
|
+
}
|
30
|
+
}
|
31
|
+
str[index++] = '}';
|
32
|
+
str[index] = '\0';
|
33
|
+
|
34
|
+
return str;
|
35
|
+
}
|
36
|
+
|
37
|
+
// Test cases
|
38
|
+
void test_set_to_string_empty()
|
39
|
+
{
|
40
|
+
struct Set set = {NULL, 0};
|
41
|
+
char *str = set_to_string(&set);
|
42
|
+
assert(str != NULL);
|
43
|
+
assert(strcmp(str, "{}") == 0);
|
44
|
+
free(str);
|
45
|
+
}
|
46
|
+
|
47
|
+
void test_set_to_string_single_element()
|
48
|
+
{
|
49
|
+
int elements[] = {5};
|
50
|
+
struct Set set = {elements, 1};
|
51
|
+
char *str = set_to_string(&set);
|
52
|
+
assert(str != NULL);
|
53
|
+
assert(strcmp(str, "{5}") == 0);
|
54
|
+
free(str);
|
55
|
+
}
|
56
|
+
|
57
|
+
void test_set_to_string_multiple_elements()
|
58
|
+
{
|
59
|
+
int elements[] = {3, 7, 12};
|
60
|
+
struct Set set = {elements, 3};
|
61
|
+
char *str = set_to_string(&set);
|
62
|
+
assert(str != NULL);
|
63
|
+
assert(strcmp(str, "{3, 7, 12}") == 0);
|
64
|
+
free(str);
|
65
|
+
}
|
66
|
+
|
67
|
+
void test_set_to_string_null_set()
|
68
|
+
{
|
69
|
+
char *str = set_to_string(NULL);
|
70
|
+
assert(str == NULL);
|
71
|
+
}
|
72
|
+
|
73
|
+
int main()
|
74
|
+
{
|
75
|
+
test_set_to_string_empty();
|
76
|
+
test_set_to_string_single_element();
|
77
|
+
test_set_to_string_multiple_elements();
|
78
|
+
test_set_to_string_null_set();
|
79
|
+
printf("All tests passed\n");
|
80
|
+
return 0;
|
81
|
+
}
|