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
@@ -0,0 +1,64 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
// Test function for the frozen_dict_del_values
|
6
|
+
void test_frozen_dict_del_values()
|
7
|
+
{
|
8
|
+
// Test case 1: Deleting a single value
|
9
|
+
{
|
10
|
+
void *singleValue = malloc(sizeof(int));
|
11
|
+
frozen_dict_del_values(&singleValue);
|
12
|
+
assert(singleValue == NULL);
|
13
|
+
}
|
14
|
+
|
15
|
+
// Test case 2: Deleting multiple values
|
16
|
+
{
|
17
|
+
void *value1 = malloc(sizeof(int));
|
18
|
+
void *value2 = malloc(sizeof(double));
|
19
|
+
void *value3 = malloc(sizeof(char));
|
20
|
+
|
21
|
+
void *values[] = {value1, value2, value3};
|
22
|
+
frozen_dict_del_values(values);
|
23
|
+
|
24
|
+
assert(value1 == NULL);
|
25
|
+
assert(value2 == NULL);
|
26
|
+
assert(value3 == NULL);
|
27
|
+
}
|
28
|
+
|
29
|
+
// Test case 3: Deleting from an empty dictionary
|
30
|
+
{
|
31
|
+
void *values[] = {NULL};
|
32
|
+
frozen_dict_del_values(values);
|
33
|
+
// No assertion because the function should handle this case gracefully
|
34
|
+
}
|
35
|
+
|
36
|
+
// Test case 4: Deleting from a large dictionary
|
37
|
+
{
|
38
|
+
const int dictSize = 1000;
|
39
|
+
void *values[dictSize];
|
40
|
+
for (int i = 0; i < dictSize; i++)
|
41
|
+
{
|
42
|
+
values[i] = malloc(sizeof(int));
|
43
|
+
}
|
44
|
+
|
45
|
+
// Delete all values
|
46
|
+
frozen_dict_del_values(values);
|
47
|
+
|
48
|
+
for (int i = 0; i < dictSize; i++)
|
49
|
+
{
|
50
|
+
assert(values[i] == NULL);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Additional corner cases can be added here
|
55
|
+
}
|
56
|
+
|
57
|
+
int main()
|
58
|
+
{
|
59
|
+
// Run the test cases
|
60
|
+
test_frozen_dict_del_values();
|
61
|
+
printf("All tests passed!\n");
|
62
|
+
|
63
|
+
return 0;
|
64
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
// Test function for frozen_dict_destructor
|
6
|
+
void test_frozen_dict_destructor()
|
7
|
+
{
|
8
|
+
frozen_dict_destructor(test_dict);
|
9
|
+
|
10
|
+
// Assert that the dictionary is deallocated
|
11
|
+
assert(test_dict == NULL);
|
12
|
+
printf("Test case passed: frozen_dict_destructor\n");
|
13
|
+
|
14
|
+
// Add more test cases for corner cases and error conditions as needed
|
15
|
+
}
|
16
|
+
|
17
|
+
int main()
|
18
|
+
{
|
19
|
+
// Run the test function
|
20
|
+
test_frozen_dict_destructor();
|
21
|
+
|
22
|
+
return 0;
|
23
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
int main()
|
5
|
+
{
|
6
|
+
// Create a test instance of the FrozenDict
|
7
|
+
struct FrozenDict testDict;
|
8
|
+
// Initialize the test dictionary with some key-value pairs
|
9
|
+
// ...
|
10
|
+
|
11
|
+
// Test case 1: Positive test case for a valid key
|
12
|
+
const char *validKey = "validKey";
|
13
|
+
void *value = frozen_dict_get(&testDict, validKey);
|
14
|
+
assert(value != NULL);
|
15
|
+
|
16
|
+
// Test case 2: Negative test case for an invalid key
|
17
|
+
const char *invalidKey = "invalidKey";
|
18
|
+
value = frozen_dict_get(&testDict, invalidKey);
|
19
|
+
assert(value == NULL);
|
20
|
+
|
21
|
+
// Additional test cases for corner cases, boundary conditions, etc.
|
22
|
+
// ...
|
23
|
+
|
24
|
+
printf("All tests passed successfully!\n");
|
25
|
+
|
26
|
+
return 0;
|
27
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
// Test cases for the function
|
7
|
+
void test_frozen_dict_get_check()
|
8
|
+
{
|
9
|
+
// Test case 1: key is found
|
10
|
+
struct FrozenDict dict1[] = {{"key1", "value1"}, {"key2", "value2"}, {NULL, NULL}};
|
11
|
+
int key_is_in_dict1;
|
12
|
+
void *result1 = frozen_dict_get_check(dict1, "key1", &key_is_in_dict1);
|
13
|
+
assert(key_is_in_dict1 == 1);
|
14
|
+
assert(strcmp((char *)result1, "value1") == 0);
|
15
|
+
|
16
|
+
// Test case 2: key is not found
|
17
|
+
struct FrozenDict dict2[] = {{"key1", "value1"}, {"key2", "value2"}, {NULL, NULL}};
|
18
|
+
int key_is_in_dict2;
|
19
|
+
void *result2 = frozen_dict_get_check(dict2, "key3", &key_is_in_dict2);
|
20
|
+
assert(key_is_in_dict2 == 0);
|
21
|
+
assert(result2 == NULL);
|
22
|
+
|
23
|
+
// Additional test cases for corner cases
|
24
|
+
//... (add more test cases as needed)
|
25
|
+
}
|
26
|
+
|
27
|
+
int main()
|
28
|
+
{
|
29
|
+
test_frozen_dict_get_check();
|
30
|
+
printf("All tests passed!\n");
|
31
|
+
return 0;
|
32
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdarg.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
|
6
|
+
int main()
|
7
|
+
{
|
8
|
+
// Test case 1: Creating an empty dictionary
|
9
|
+
struct FrozenDict *empty_dict = frozen_dict_new_instance(0);
|
10
|
+
assert(empty_dict != NULL);
|
11
|
+
|
12
|
+
// Test case 2: Creating a dictionary with one key-value pair
|
13
|
+
char *key1 = "key1";
|
14
|
+
int value1 = 100;
|
15
|
+
struct FrozenDict *single_dict = frozen_dict_new_instance(1, key1, &value1);
|
16
|
+
assert(single_dict != NULL);
|
17
|
+
assert(single_dict->size == 1); // Assuming size is a member of FrozenDict
|
18
|
+
|
19
|
+
// Add more test cases for different scenarios and edge cases
|
20
|
+
|
21
|
+
printf("All tests passed successfully\n");
|
22
|
+
return 0;
|
23
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
// Test cases for the frozen_dict_size function
|
5
|
+
void test_frozen_dict_size()
|
6
|
+
{
|
7
|
+
struct FrozenDict dict;
|
8
|
+
|
9
|
+
// Test case 1: Empty dictionary
|
10
|
+
size_t size = frozen_dict_size(&dict);
|
11
|
+
assert(size == 0);
|
12
|
+
|
13
|
+
// Test case 2: Dictionary with one key-value pair
|
14
|
+
// Add key-value pair to the dictionary
|
15
|
+
size = frozen_dict_size(&dict);
|
16
|
+
assert(size == 1);
|
17
|
+
|
18
|
+
// Test case 3: Dictionary with multiple key-value pairs
|
19
|
+
// Add multiple key-value pairs to the dictionary
|
20
|
+
size = frozen_dict_size(&dict);
|
21
|
+
assert(size == 2);
|
22
|
+
}
|
23
|
+
|
24
|
+
int main()
|
25
|
+
{
|
26
|
+
printf("Running tests for frozen_dict_size function\n");
|
27
|
+
|
28
|
+
test_frozen_dict_size();
|
29
|
+
|
30
|
+
printf("All tests passed!\n");
|
31
|
+
|
32
|
+
return 0;
|
33
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
// Test cases for the frozen_dict_to_array function
|
6
|
+
void test_frozen_dict_to_array()
|
7
|
+
{
|
8
|
+
// Test case 1: Empty dictionary
|
9
|
+
{
|
10
|
+
struct FrozenDict empty_dict;
|
11
|
+
char **empty_keys;
|
12
|
+
void **empty_values;
|
13
|
+
size_t size_empty;
|
14
|
+
|
15
|
+
size_t result = frozen_dict_to_array(&empty_dict, &empty_keys, &empty_values, &size_empty);
|
16
|
+
|
17
|
+
assert(result == 0); // Check for success
|
18
|
+
assert(size_empty == 0); // Check for empty size
|
19
|
+
}
|
20
|
+
|
21
|
+
// Test case 2: Non-empty dictionary
|
22
|
+
{
|
23
|
+
struct FrozenDict non_empty_dict;
|
24
|
+
char **non_empty_keys;
|
25
|
+
void **non_empty_values;
|
26
|
+
size_t size_non_empty;
|
27
|
+
|
28
|
+
// Assuming non_empty_dict has some data
|
29
|
+
|
30
|
+
size_t result = frozen_dict_to_array(&non_empty_dict, &non_empty_keys, &non_empty_values, &size_non_empty);
|
31
|
+
|
32
|
+
assert(result == 0); // Check for success
|
33
|
+
assert(size_non_empty > 0); // Check for non-empty size
|
34
|
+
assert(non_empty_keys != NULL); // Check keys array
|
35
|
+
assert(non_empty_values != NULL); // Check values array
|
36
|
+
|
37
|
+
// Clean up
|
38
|
+
free(non_empty_keys);
|
39
|
+
free(non_empty_values);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
int main()
|
44
|
+
{
|
45
|
+
// Run the test suite
|
46
|
+
test_frozen_dict_to_array();
|
47
|
+
|
48
|
+
printf("All tests passed!\n");
|
49
|
+
|
50
|
+
return 0;
|
51
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
|
7
|
+
void test_frozen_dict_to_string()
|
8
|
+
{
|
9
|
+
struct FrozenDict *dict = frozen_dict_new_instance(); // Create a test frozen dictionary
|
10
|
+
|
11
|
+
char *result = frozen_dict_to_string(dict, 0);
|
12
|
+
// Test pointer format result
|
13
|
+
assert(result != NULL);
|
14
|
+
|
15
|
+
// Test the result matches the expected format for pointer
|
16
|
+
// Assume expected pointer format for the test
|
17
|
+
// Example: assert(strcmp(result, "0x1234, 0x5678") == 0);
|
18
|
+
|
19
|
+
free(result);
|
20
|
+
|
21
|
+
result = frozen_dict_to_string(dict, 1);
|
22
|
+
// Test string format result
|
23
|
+
assert(result != NULL);
|
24
|
+
|
25
|
+
// Test the result matches the expected format for string
|
26
|
+
// Assume expected string format for the test
|
27
|
+
// Example: assert(strcmp(result, "{key1: value1, key2: value2}") == 0);
|
28
|
+
|
29
|
+
free(result);
|
30
|
+
|
31
|
+
// Test with NULL dictionary
|
32
|
+
result = frozen_dict_to_string(NULL, 0);
|
33
|
+
assert(result == NULL);
|
34
|
+
|
35
|
+
// Test with NULL dictionary and string format
|
36
|
+
result = frozen_dict_to_string(NULL, 1);
|
37
|
+
assert(result == NULL);
|
38
|
+
|
39
|
+
// Free the test frozen dictionary
|
40
|
+
free_test_frozen_dict(dict);
|
41
|
+
}
|
42
|
+
|
43
|
+
int main()
|
44
|
+
{
|
45
|
+
test_frozen_dict_to_string();
|
46
|
+
printf("All tests passed!\n");
|
47
|
+
return 0;
|
48
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
#include <stdlib.h>
|
6
|
+
#include <string.h>
|
7
|
+
int main()
|
8
|
+
{
|
9
|
+
// Test case 1: Deleting keys from an empty FrozenSet
|
10
|
+
char **empty_keys = NULL;
|
11
|
+
frozen_set_del_keys(empty_keys);
|
12
|
+
assert(empty_keys == NULL);
|
13
|
+
|
14
|
+
// Test case 2: Deleting keys from a FrozenSet with single key
|
15
|
+
char **single_key = (char **)malloc(2 * sizeof(char *));
|
16
|
+
single_key[0] = strdup("key1");
|
17
|
+
single_key[1] = NULL;
|
18
|
+
frozen_set_del_keys(single_key);
|
19
|
+
assert(single_key[0] == NULL);
|
20
|
+
assert(single_key == NULL);
|
21
|
+
|
22
|
+
// Test case 3: Deleting keys from a FrozenSet with multiple keys
|
23
|
+
char **multiple_keys = (char **)malloc(4 * sizeof(char *));
|
24
|
+
multiple_keys[0] = strdup("key1");
|
25
|
+
multiple_keys[1] = strdup("key2");
|
26
|
+
multiple_keys[2] = strdup("key3");
|
27
|
+
multiple_keys[3] = NULL;
|
28
|
+
frozen_set_del_keys(multiple_keys);
|
29
|
+
assert(multiple_keys[0] == NULL);
|
30
|
+
assert(multiple_keys == NULL);
|
31
|
+
|
32
|
+
printf("All test cases passed!\n");
|
33
|
+
|
34
|
+
return 0;
|
35
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
// Define the Set and SetKey structures
|
6
|
+
struct SetKey
|
7
|
+
{
|
8
|
+
const char *key;
|
9
|
+
struct SetKey *next;
|
10
|
+
};
|
11
|
+
|
12
|
+
struct Set
|
13
|
+
{
|
14
|
+
struct SetKey **table;
|
15
|
+
size_t capacity;
|
16
|
+
};
|
17
|
+
|
18
|
+
// Define the FOUNDATIONAL_LIB_FUNC macro
|
19
|
+
|
20
|
+
// Include the set_in function
|
21
|
+
#include "set_in.c"
|
22
|
+
|
23
|
+
// Test the set_in function
|
24
|
+
void test_set_in()
|
25
|
+
{
|
26
|
+
// Create a Set
|
27
|
+
struct Set set;
|
28
|
+
set.capacity = 10;
|
29
|
+
set.table = calloc(set.capacity, sizeof(struct SetKey *));
|
30
|
+
|
31
|
+
// Add some keys to the Set
|
32
|
+
struct SetKey key1 = {"key1", NULL};
|
33
|
+
set.table[0] = &key1;
|
34
|
+
|
35
|
+
struct SetKey key2 = {"key2", NULL};
|
36
|
+
set.table[1] = &key2;
|
37
|
+
|
38
|
+
// Test for present key
|
39
|
+
assert(set_in(&set, "key1") == 1);
|
40
|
+
|
41
|
+
// Test for absent key
|
42
|
+
assert(set_in(&set, "key3") == 0);
|
43
|
+
|
44
|
+
// Free the memory used by the Set
|
45
|
+
free(set.table);
|
46
|
+
}
|
47
|
+
|
48
|
+
int main()
|
49
|
+
{
|
50
|
+
test_set_in();
|
51
|
+
|
52
|
+
printf("All tests passed.\n");
|
53
|
+
|
54
|
+
return 0;
|
55
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
|
7
|
+
// Define FrozenSet structure
|
8
|
+
struct FrozenSet
|
9
|
+
{
|
10
|
+
const char **elements;
|
11
|
+
size_t size;
|
12
|
+
};
|
13
|
+
|
14
|
+
// Initialize a new FrozenSet
|
15
|
+
struct FrozenSet *frozen_set_init(const char **elements, size_t size)
|
16
|
+
{
|
17
|
+
struct FrozenSet *set = (struct FrozenSet *)malloc(sizeof(struct FrozenSet));
|
18
|
+
set->elements = elements;
|
19
|
+
set->size = size;
|
20
|
+
return set;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Free memory allocated for the FrozenSet
|
24
|
+
void frozen_set_free(struct FrozenSet *set) { free(set); }
|
25
|
+
|
26
|
+
// Function to check if a key is in the FrozenSet
|
27
|
+
int frozen_set_in(struct FrozenSet *set, const char *key)
|
28
|
+
{
|
29
|
+
for (size_t i = 0; i < set->size; i++)
|
30
|
+
{
|
31
|
+
if (strcmp(set->elements[i], key) == 0)
|
32
|
+
{
|
33
|
+
return 1;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Comprehensive test suite for frozen_set_in function
|
40
|
+
void test_frozen_set_in()
|
41
|
+
{
|
42
|
+
const char *elements[] = {"apple", "banana", "cherry"};
|
43
|
+
struct FrozenSet *set = frozen_set_init(elements, 3);
|
44
|
+
|
45
|
+
// Test for keys present in the FrozenSet
|
46
|
+
assert(frozen_set_in(set, "apple") == 1);
|
47
|
+
assert(frozen_set_in(set, "banana") == 1);
|
48
|
+
assert(frozen_set_in(set, "cherry") == 1);
|
49
|
+
|
50
|
+
// Test for keys not present in the FrozenSet
|
51
|
+
assert(frozen_set_in(set, "orange") == 0);
|
52
|
+
assert(frozen_set_in(set, "grape") == 0);
|
53
|
+
|
54
|
+
// Test for empty FrozenSet
|
55
|
+
const char *empty_elements[] = {};
|
56
|
+
struct FrozenSet *empty_set = frozen_set_init(empty_elements, 0);
|
57
|
+
assert(frozen_set_in(empty_set, "any_key") == 0);
|
58
|
+
|
59
|
+
// Free allocated memory
|
60
|
+
frozen_set_free(set);
|
61
|
+
frozen_set_free(empty_set);
|
62
|
+
|
63
|
+
printf("All test cases passed successfully!\n");
|
64
|
+
}
|
65
|
+
|
66
|
+
int main()
|
67
|
+
{
|
68
|
+
test_frozen_set_in();
|
69
|
+
return 0;
|
70
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
|
6
|
+
// Define the Set data structure
|
7
|
+
struct Set
|
8
|
+
{
|
9
|
+
// Implementation details omitted for brevity
|
10
|
+
};
|
11
|
+
|
12
|
+
// Define the function to be tested
|
13
|
+
void frozen_set_iter(struct Set *set, void (*callback)(char *key))
|
14
|
+
{
|
15
|
+
// Implementation details omitted for brevity
|
16
|
+
}
|
17
|
+
|
18
|
+
// Define the callback function for testing
|
19
|
+
void test_callback(char *key)
|
20
|
+
{
|
21
|
+
// Implementation of the test callback function for testing
|
22
|
+
}
|
23
|
+
|
24
|
+
// Test case 1: Test with an empty set
|
25
|
+
void test_empty_set()
|
26
|
+
{
|
27
|
+
struct Set *empty_set = (struct Set *)malloc(sizeof(struct Set));
|
28
|
+
assert(empty_set != NULL);
|
29
|
+
|
30
|
+
frozen_set_iter(empty_set, test_callback);
|
31
|
+
|
32
|
+
free(empty_set);
|
33
|
+
}
|
34
|
+
|
35
|
+
// Test case 2: Test with a set containing one key
|
36
|
+
void test_single_key_set()
|
37
|
+
{
|
38
|
+
struct Set *single_key_set = (struct Set *)malloc(sizeof(struct Set));
|
39
|
+
assert(single_key_set != NULL);
|
40
|
+
|
41
|
+
// Add a key to the set
|
42
|
+
|
43
|
+
frozen_set_iter(single_key_set, test_callback);
|
44
|
+
|
45
|
+
free(single_key_set);
|
46
|
+
}
|
47
|
+
|
48
|
+
// Test case 3: Test with a set containing multiple keys
|
49
|
+
void test_multiple_keys_set()
|
50
|
+
{
|
51
|
+
struct Set *multiple_keys_set = (struct Set *)malloc(sizeof(struct Set));
|
52
|
+
assert(multiple_keys_set != NULL);
|
53
|
+
|
54
|
+
// Add multiple keys to the set
|
55
|
+
|
56
|
+
frozen_set_iter(multiple_keys_set, test_callback);
|
57
|
+
|
58
|
+
free(multiple_keys_set);
|
59
|
+
}
|
60
|
+
|
61
|
+
int main()
|
62
|
+
{
|
63
|
+
// Run the test cases
|
64
|
+
test_empty_set();
|
65
|
+
test_single_key_set();
|
66
|
+
test_multiple_keys_set();
|
67
|
+
|
68
|
+
printf("All test cases passed!\n");
|
69
|
+
|
70
|
+
return 0;
|
71
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdarg.h>
|
4
|
+
|
5
|
+
void test_frozen_set_new_instance()
|
6
|
+
{
|
7
|
+
// Test creating an empty FrozenSet
|
8
|
+
struct FrozenSet *empty_set = frozen_set_new_instance(0);
|
9
|
+
assert(empty_set->size == 0);
|
10
|
+
|
11
|
+
// Test creating a FrozenSet with single element
|
12
|
+
struct FrozenSet *single_set = frozen_set_new_instance(1, "key1");
|
13
|
+
assert(single_set->size == 1);
|
14
|
+
// Check if the single element is "key1"
|
15
|
+
|
16
|
+
// Test creating a FrozenSet with multiple elements
|
17
|
+
struct FrozenSet *multiple_set = frozen_set_new_instance(3, "key1", "key2", "key3");
|
18
|
+
assert(multiple_set->size == 3);
|
19
|
+
// Check if all the elements are "key1", "key2", "key3"
|
20
|
+
}
|
21
|
+
|
22
|
+
int main()
|
23
|
+
{
|
24
|
+
test_frozen_set_new_instance();
|
25
|
+
return 0;
|
26
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
|
6
|
+
struct FrozenSet
|
7
|
+
{
|
8
|
+
int elements[100]; // Example data structure
|
9
|
+
int size; // Size of the set
|
10
|
+
};
|
11
|
+
|
12
|
+
size_t frozen_set_size(struct FrozenSet *set) { return set->size; }
|
13
|
+
|
14
|
+
int main()
|
15
|
+
{
|
16
|
+
// Test 1: Set with size 0
|
17
|
+
struct FrozenSet set1 = {{}, 0};
|
18
|
+
assert(frozen_set_size(&set1) == 0);
|
19
|
+
|
20
|
+
// Test 2: Set with size 5
|
21
|
+
struct FrozenSet set2 = {{1, 2, 3, 4, 5}, 5};
|
22
|
+
assert(frozen_set_size(&set2) == 5);
|
23
|
+
|
24
|
+
// Test 3: Set with size 10
|
25
|
+
struct FrozenSet set3 = {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 10};
|
26
|
+
assert(frozen_set_size(&set3) == 10);
|
27
|
+
|
28
|
+
// Test 4: Set with size 100 (maximum size)
|
29
|
+
struct FrozenSet set4;
|
30
|
+
for (int i = 0; i < 100; i++)
|
31
|
+
{
|
32
|
+
set4.elements[i] = i;
|
33
|
+
}
|
34
|
+
set4.size = 100;
|
35
|
+
assert(frozen_set_size(&set4) == 100);
|
36
|
+
|
37
|
+
// Test 5: Set with size 100000 (unrealistically large size)
|
38
|
+
struct FrozenSet *set5 = (struct FrozenSet *)malloc(sizeof(struct FrozenSet));
|
39
|
+
set5->size = 100000;
|
40
|
+
assert(frozen_set_size(set5) == 100000);
|
41
|
+
free(set5);
|
42
|
+
|
43
|
+
printf("All tests passed!\n");
|
44
|
+
|
45
|
+
return 0;
|
46
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
|
7
|
+
// Define the FrozenSet structure
|
8
|
+
struct FrozenSet
|
9
|
+
{
|
10
|
+
char *data;
|
11
|
+
size_t size;
|
12
|
+
};
|
13
|
+
|
14
|
+
// Define the function to be tested
|
15
|
+
int frozen_set_to_array(struct FrozenSet *set, char ***keys, size_t *size_of_keys)
|
16
|
+
{
|
17
|
+
// Implementation of the function
|
18
|
+
// ...
|
19
|
+
|
20
|
+
// Return 1 on success, 0 on failure
|
21
|
+
return 1;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Define test cases
|
25
|
+
void test_frozen_set_to_array()
|
26
|
+
{
|
27
|
+
// Test case 1: Empty set
|
28
|
+
struct FrozenSet empty_set = {NULL, 0};
|
29
|
+
char **keys1;
|
30
|
+
size_t size_of_keys1 = 0;
|
31
|
+
assert(frozen_set_to_array(&empty_set, &keys1, &size_of_keys1) == 1);
|
32
|
+
assert(size_of_keys1 == 0);
|
33
|
+
|
34
|
+
// Test case 2: Set with one key
|
35
|
+
char data2[] = "key1";
|
36
|
+
struct FrozenSet set2 = {data2, sizeof(data2)};
|
37
|
+
char **keys2;
|
38
|
+
size_t size_of_keys2 = 0;
|
39
|
+
assert(frozen_set_to_array(&set2, &keys2, &size_of_keys2) == 1);
|
40
|
+
assert(size_of_keys2 == 1);
|
41
|
+
assert(strcmp(keys2[0], "key1") == 0);
|
42
|
+
free(keys2[0]);
|
43
|
+
free(keys2);
|
44
|
+
|
45
|
+
// Test case 3: Set with multiple keys
|
46
|
+
char data3[] = "key1\tkey2\tkey3";
|
47
|
+
struct FrozenSet set3 = {data3, sizeof(data3)};
|
48
|
+
char **keys3;
|
49
|
+
size_t size_of_keys3 = 0;
|
50
|
+
assert(frozen_set_to_array(&set3, &keys3, &size_of_keys3) == 1);
|
51
|
+
assert(size_of_keys3 == 3);
|
52
|
+
assert(strcmp(keys3[0], "key1") == 0);
|
53
|
+
assert(strcmp(keys3[1], "key2") == 0);
|
54
|
+
assert(strcmp(keys3[2], "key3") == 0);
|
55
|
+
for (size_t i = 0; i < size_of_keys3; i++)
|
56
|
+
{
|
57
|
+
free(keys3[i]);
|
58
|
+
}
|
59
|
+
free(keys3);
|
60
|
+
}
|
61
|
+
|
62
|
+
// Main function to run the test cases
|
63
|
+
int main()
|
64
|
+
{
|
65
|
+
test_frozen_set_to_array();
|
66
|
+
|
67
|
+
printf("All tests passed successfully!\n");
|
68
|
+
|
69
|
+
return 0;
|
70
|
+
}
|