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,52 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
|
6
|
+
struct FrozenSet
|
7
|
+
{
|
8
|
+
int size;
|
9
|
+
int *elements;
|
10
|
+
};
|
11
|
+
|
12
|
+
char *frozen_set_to_string(struct FrozenSet *frozen_set)
|
13
|
+
{
|
14
|
+
char *str = (char *)malloc(100 * sizeof(char)); // Assume max length of string is 100
|
15
|
+
// Implementation of converting frozen set to string goes here
|
16
|
+
return str;
|
17
|
+
}
|
18
|
+
|
19
|
+
int main()
|
20
|
+
{
|
21
|
+
// Test case 1: Empty frozen set
|
22
|
+
struct FrozenSet empty_set = {0, NULL};
|
23
|
+
char *empty_str = frozen_set_to_string(&empty_set);
|
24
|
+
assert(empty_str != NULL);
|
25
|
+
free(empty_str);
|
26
|
+
|
27
|
+
// Test case 2: Frozen set with elements
|
28
|
+
int elements1[] = {1, 2, 3};
|
29
|
+
struct FrozenSet set1 = {3, elements1};
|
30
|
+
char *str1 = frozen_set_to_string(&set1);
|
31
|
+
assert(str1 != NULL);
|
32
|
+
free(str1);
|
33
|
+
|
34
|
+
// Test case 3: Frozen set with large number of elements
|
35
|
+
int elements2[] = {100, 200, 300, 400, 500};
|
36
|
+
struct FrozenSet set2 = {5, elements2};
|
37
|
+
char *str2 = frozen_set_to_string(&set2);
|
38
|
+
assert(str2 != NULL);
|
39
|
+
free(str2);
|
40
|
+
|
41
|
+
// Test case 4: Frozen set with negative elements
|
42
|
+
int elements3[] = {-1, -2, -3};
|
43
|
+
struct FrozenSet set3 = {3, elements3};
|
44
|
+
char *str3 = frozen_set_to_string(&set3);
|
45
|
+
assert(str3 != NULL);
|
46
|
+
free(str3);
|
47
|
+
|
48
|
+
// Add more test cases for corner cases and edge cases here...
|
49
|
+
|
50
|
+
printf("All test cases passed!\n");
|
51
|
+
return 0;
|
52
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
|
6
|
+
int *generate_range(int start, int end, int step, size_t *range_size)
|
7
|
+
{
|
8
|
+
if (step == 0)
|
9
|
+
{
|
10
|
+
*range_size = 0;
|
11
|
+
return NULL;
|
12
|
+
}
|
13
|
+
|
14
|
+
int size = (end - start) / step + 1;
|
15
|
+
int *result = (int *)malloc(size * sizeof(int));
|
16
|
+
|
17
|
+
int value = start;
|
18
|
+
for (int i = 0; i < size; i++)
|
19
|
+
{
|
20
|
+
result[i] = value;
|
21
|
+
value += step;
|
22
|
+
}
|
23
|
+
|
24
|
+
*range_size = size;
|
25
|
+
return result;
|
26
|
+
}
|
27
|
+
|
28
|
+
void test_generate_range()
|
29
|
+
{
|
30
|
+
size_t range_size;
|
31
|
+
|
32
|
+
// Test case 1: Normal range
|
33
|
+
int *range1 = generate_range(0, 5, 1, &range_size);
|
34
|
+
assert(range1 != NULL);
|
35
|
+
assert(range_size == 6);
|
36
|
+
for (int i = 0; i < 6; i++)
|
37
|
+
{
|
38
|
+
assert(range1[i] == i);
|
39
|
+
}
|
40
|
+
free(range1);
|
41
|
+
|
42
|
+
// Test case 2: Negative step
|
43
|
+
int *range2 = generate_range(10, 5, -2, &range_size);
|
44
|
+
assert(range2 != NULL);
|
45
|
+
assert(range_size == 3);
|
46
|
+
assert(range2[0] == 10);
|
47
|
+
assert(range2[1] == 8);
|
48
|
+
assert(range2[2] == 6);
|
49
|
+
free(range2);
|
50
|
+
|
51
|
+
// Test case 3: Step is zero
|
52
|
+
int *range3 = generate_range(-2, 2, 0, &range_size);
|
53
|
+
assert(range3 == NULL);
|
54
|
+
assert(range_size == 0);
|
55
|
+
}
|
56
|
+
|
57
|
+
int main()
|
58
|
+
{
|
59
|
+
test_generate_range();
|
60
|
+
printf("All tests passed successfully!\n");
|
61
|
+
return 0;
|
62
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
|
4
|
+
// Function to test
|
5
|
+
ssize_t index_of_char(const char *str, char chr);
|
6
|
+
|
7
|
+
// Test cases
|
8
|
+
void test_index_of_char_normal_case()
|
9
|
+
{
|
10
|
+
const char *str = "hello";
|
11
|
+
char chr = 'e';
|
12
|
+
ssize_t result = index_of_char(str, chr);
|
13
|
+
assert(result == 1);
|
14
|
+
}
|
15
|
+
|
16
|
+
void test_index_of_char_not_found()
|
17
|
+
{
|
18
|
+
const char *str = "hello";
|
19
|
+
char chr = 'z';
|
20
|
+
ssize_t result = index_of_char(str, chr);
|
21
|
+
assert(result == -1);
|
22
|
+
}
|
23
|
+
|
24
|
+
void test_index_of_char_empty_string()
|
25
|
+
{
|
26
|
+
const char *str = "";
|
27
|
+
char chr = 'a';
|
28
|
+
ssize_t result = index_of_char(str, chr);
|
29
|
+
assert(result == -1);
|
30
|
+
}
|
31
|
+
|
32
|
+
void test_index_of_char_null_string()
|
33
|
+
{
|
34
|
+
const char *str = NULL;
|
35
|
+
char chr = 'a';
|
36
|
+
ssize_t result = index_of_char(str, chr);
|
37
|
+
assert(result == -1);
|
38
|
+
}
|
39
|
+
|
40
|
+
void test_index_of_char_null_character()
|
41
|
+
{
|
42
|
+
const char *str = "hello";
|
43
|
+
char chr = '\0';
|
44
|
+
ssize_t result = index_of_char(str, chr);
|
45
|
+
assert(result == -1);
|
46
|
+
}
|
47
|
+
|
48
|
+
void test_index_of_char_single_character_string_found()
|
49
|
+
{
|
50
|
+
const char *str = "h";
|
51
|
+
char chr = 'h';
|
52
|
+
ssize_t result = index_of_char(str, chr);
|
53
|
+
assert(result == 0);
|
54
|
+
}
|
55
|
+
|
56
|
+
void test_index_of_char_single_character_string_not_found()
|
57
|
+
{
|
58
|
+
const char *str = "a";
|
59
|
+
char chr = 'b';
|
60
|
+
ssize_t result = index_of_char(str, chr);
|
61
|
+
assert(result == -1);
|
62
|
+
}
|
63
|
+
|
64
|
+
// Main function to run all the test cases
|
65
|
+
int main()
|
66
|
+
{
|
67
|
+
test_index_of_char_normal_case();
|
68
|
+
test_index_of_char_not_found();
|
69
|
+
test_index_of_char_empty_string();
|
70
|
+
test_index_of_char_null_string();
|
71
|
+
test_index_of_char_null_character();
|
72
|
+
test_index_of_char_single_character_string_found();
|
73
|
+
test_index_of_char_single_character_string_not_found();
|
74
|
+
|
75
|
+
printf("All test cases passed successfully!\n");
|
76
|
+
return 0;
|
77
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <stdlib.h>
|
5
|
+
#include <string.h>
|
6
|
+
// Test function
|
7
|
+
void test_int_to_string()
|
8
|
+
{
|
9
|
+
// Test case 1
|
10
|
+
int num1 = 12345;
|
11
|
+
char *expected_str1 = "12345";
|
12
|
+
char *result_str1 = int_to_string(num1);
|
13
|
+
assert(strcmp(expected_str1, result_str1) == 0);
|
14
|
+
|
15
|
+
// Test case 2
|
16
|
+
int num2 = -54321;
|
17
|
+
char *expected_str2 = "-54321";
|
18
|
+
char *result_str2 = int_to_string(num2);
|
19
|
+
assert(strcmp(expected_str2, result_str2) == 0);
|
20
|
+
|
21
|
+
// Test case 3
|
22
|
+
int num3 = 0;
|
23
|
+
char *expected_str3 = "0";
|
24
|
+
char *result_str3 = int_to_string(num3);
|
25
|
+
assert(strcmp(expected_str3, result_str3) == 0);
|
26
|
+
|
27
|
+
// Test case 4 (corner case: largest positive number)
|
28
|
+
int num4 = 2147483647;
|
29
|
+
char *expected_str4 = "2147483647";
|
30
|
+
char *result_str4 = int_to_string(num4);
|
31
|
+
assert(strcmp(expected_str4, result_str4) == 0);
|
32
|
+
|
33
|
+
// Test case 5 (corner case: smallest negative number)
|
34
|
+
int num5 = -2147483648;
|
35
|
+
char *expected_str5 = "-2147483648";
|
36
|
+
char *result_str5 = int_to_string(num5);
|
37
|
+
assert(strcmp(expected_str5, result_str5) == 0);
|
38
|
+
|
39
|
+
// Free dynamically allocated memory
|
40
|
+
free(result_str1);
|
41
|
+
free(result_str2);
|
42
|
+
free(result_str3);
|
43
|
+
free(result_str4);
|
44
|
+
free(result_str5);
|
45
|
+
|
46
|
+
printf("All test cases passed!\n");
|
47
|
+
}
|
48
|
+
|
49
|
+
// Main function
|
50
|
+
int main()
|
51
|
+
{
|
52
|
+
test_int_to_string();
|
53
|
+
return 0;
|
54
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
FOUNDATIONAL_LIB_FUNC int is_alphanumeric(const char *str)
|
6
|
+
{
|
7
|
+
if (str == NULL)
|
8
|
+
{
|
9
|
+
return 0;
|
10
|
+
}
|
11
|
+
while (*str)
|
12
|
+
{
|
13
|
+
if ((*str < 'a' || *str > 'z') && (*str < 'A' || *str > 'Z') && (*str < '0' || *str > '9'))
|
14
|
+
{
|
15
|
+
return 0;
|
16
|
+
}
|
17
|
+
str++;
|
18
|
+
}
|
19
|
+
return 1;
|
20
|
+
}
|
21
|
+
|
22
|
+
int main()
|
23
|
+
{
|
24
|
+
// Test cases for empty string
|
25
|
+
assert(is_alphanumeric("") == 0);
|
26
|
+
|
27
|
+
// Test cases for only alphabets
|
28
|
+
assert(is_alphanumeric("abc") == 1);
|
29
|
+
assert(is_alphanumeric("ABC") == 1);
|
30
|
+
assert(is_alphanumeric("abC") == 1);
|
31
|
+
assert(is_alphanumeric("aBc") == 1);
|
32
|
+
assert(is_alphanumeric("123") == 0);
|
33
|
+
|
34
|
+
// Test cases for only digits
|
35
|
+
assert(is_alphanumeric("123") == 1);
|
36
|
+
assert(is_alphanumeric("456") == 1);
|
37
|
+
assert(is_alphanumeric("789") == 1);
|
38
|
+
assert(is_alphanumeric("312") == 1);
|
39
|
+
assert(is_alphanumeric("abc123") == 0);
|
40
|
+
|
41
|
+
// Test case for special characters
|
42
|
+
assert(is_alphanumeric("abc123@") == 0);
|
43
|
+
|
44
|
+
// Test case for NULL input
|
45
|
+
assert(is_alphanumeric(NULL) == 0);
|
46
|
+
|
47
|
+
printf("All tests passed!\n");
|
48
|
+
|
49
|
+
return 0;
|
50
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <string.h>
|
5
|
+
|
6
|
+
int is_array_digit(const char *arr[], size_t size)
|
7
|
+
{
|
8
|
+
// Check for NULL array or empty array
|
9
|
+
if (arr == NULL || size == 0)
|
10
|
+
{
|
11
|
+
return 1;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Iterate through the array to check each string
|
15
|
+
for (size_t i = 0; i < size; i++)
|
16
|
+
{
|
17
|
+
if (arr[i] == NULL || *arr[i] == '\0')
|
18
|
+
{
|
19
|
+
continue; // Treat NULL or empty string as containing only digits
|
20
|
+
}
|
21
|
+
|
22
|
+
// Check if the string contains non-digit characters
|
23
|
+
for (size_t j = 0; j < strlen(arr[i]); j++)
|
24
|
+
{
|
25
|
+
if (arr[i][j] < '0' || arr[i][j] > '9')
|
26
|
+
{
|
27
|
+
return 0; // Non-digit character found
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
return 1; // All strings contain only digits
|
33
|
+
}
|
34
|
+
|
35
|
+
int main()
|
36
|
+
{
|
37
|
+
// Test cases for is_array_digit function
|
38
|
+
|
39
|
+
// Empty array
|
40
|
+
const char *emptyArray[] = {};
|
41
|
+
assert(is_array_digit(emptyArray, 0) == 1);
|
42
|
+
|
43
|
+
// NULL array
|
44
|
+
assert(is_array_digit(NULL, 5) == 1);
|
45
|
+
|
46
|
+
// Array with all digit strings
|
47
|
+
const char *allDigitArray[] = {"123", "456", "789"};
|
48
|
+
assert(is_array_digit(allDigitArray, 3) == 1);
|
49
|
+
|
50
|
+
// Array with non-digit strings
|
51
|
+
const char *nonDigitArray[] = {"123", "4A6", "789"};
|
52
|
+
assert(is_array_digit(nonDigitArray, 3) == 0);
|
53
|
+
|
54
|
+
// Array with empty strings
|
55
|
+
const char *emptyStringArray[] = {"123", "", "789"};
|
56
|
+
assert(is_array_digit(emptyStringArray, 3) == 1);
|
57
|
+
|
58
|
+
// Array with NULL strings
|
59
|
+
const char *nullStringArray[] = {"123", NULL, "789"};
|
60
|
+
assert(is_array_digit(nullStringArray, 3) == 1);
|
61
|
+
|
62
|
+
// Array with non-null-terminated string
|
63
|
+
const char *nonNullTerminatedArray[] = {"123", "4567", "789"};
|
64
|
+
assert(is_array_digit(nonNullTerminatedArray, 3) == 0);
|
65
|
+
|
66
|
+
return 0;
|
67
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
|
6
|
+
FOUNDATIONAL_LIB_FUNC int is_array_lower(const char *arr[], size_t size)
|
7
|
+
{
|
8
|
+
for (size_t i = 0; i < size; i++)
|
9
|
+
{
|
10
|
+
const char *str = arr[i];
|
11
|
+
while (*str)
|
12
|
+
{
|
13
|
+
if (*str < 'a' || *str > 'z')
|
14
|
+
{
|
15
|
+
return 0;
|
16
|
+
}
|
17
|
+
str++;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
return 1;
|
21
|
+
}
|
22
|
+
|
23
|
+
int main()
|
24
|
+
{
|
25
|
+
// Test case 1: All lowercase
|
26
|
+
const char *arr1[] = {"hello", "world", "this", "is", "a", "test"};
|
27
|
+
size_t size1 = sizeof(arr1) / sizeof(arr1[0]);
|
28
|
+
assert(is_array_lower(arr1, size1) == 1);
|
29
|
+
|
30
|
+
// Test case 2: Mixed case
|
31
|
+
const char *arr2[] = {"hello", "World", "tHis", "IS", "a", "teSt"};
|
32
|
+
size_t size2 = sizeof(arr2) / sizeof(arr2[0]);
|
33
|
+
assert(is_array_lower(arr2, size2) == 0);
|
34
|
+
|
35
|
+
// Test case 3: Empty array
|
36
|
+
const char *arr3[] = {};
|
37
|
+
size_t size3 = 0;
|
38
|
+
assert(is_array_lower(arr3, size3) == 1);
|
39
|
+
|
40
|
+
// Test case 4: Single empty string
|
41
|
+
const char *arr4[] = {""};
|
42
|
+
size_t size4 = 1;
|
43
|
+
assert(is_array_lower(arr4, size4) == 1);
|
44
|
+
|
45
|
+
// Test case 5: Single uppercase character
|
46
|
+
const char *arr5[] = {"Hello"};
|
47
|
+
size_t size5 = 1;
|
48
|
+
assert(is_array_lower(arr5, size5) == 0);
|
49
|
+
|
50
|
+
printf("All test cases passed!\n");
|
51
|
+
return 0;
|
52
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
int main()
|
4
|
+
{
|
5
|
+
// Test case 1: Array containing only uppercase characters
|
6
|
+
const char *arr1[] = {"HELLO", "WORLD", "THIS", "IS", "A", "TEST"};
|
7
|
+
assert(is_array_upper(arr1, 6) == 1);
|
8
|
+
|
9
|
+
// Test case 2: Array containing both uppercase and lowercase characters
|
10
|
+
const char *arr2[] = {"Hello", "World", "This", "Is", "A", "Test"};
|
11
|
+
assert(is_array_upper(arr2, 6) == 0);
|
12
|
+
|
13
|
+
// Test case 3: Array containing only one string
|
14
|
+
const char *arr3[] = {"HELLO"};
|
15
|
+
assert(is_array_upper(arr3, 1) == 1);
|
16
|
+
|
17
|
+
// Test case 4: Array containing an empty string
|
18
|
+
const char *arr4[] = {""};
|
19
|
+
assert(is_array_upper(arr4, 1) == 1);
|
20
|
+
|
21
|
+
// Test case 5: Array containing special characters
|
22
|
+
const char *arr5[] = {"HELLO!", "WORLD@", "THIS#", "IS$", "A%", "TEST^"};
|
23
|
+
assert(is_array_upper(arr5, 6) == 0);
|
24
|
+
|
25
|
+
printf("All tests passed successfully!\n");
|
26
|
+
|
27
|
+
return 0;
|
28
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
// Function to test
|
6
|
+
FOUNDATIONAL_LIB_FUNC int is_numeric(const char *str)
|
7
|
+
{
|
8
|
+
while (*str)
|
9
|
+
{
|
10
|
+
if (*str < '0' || *str > '9')
|
11
|
+
{
|
12
|
+
return 0;
|
13
|
+
}
|
14
|
+
str++;
|
15
|
+
}
|
16
|
+
return 1;
|
17
|
+
}
|
18
|
+
|
19
|
+
// Test suite
|
20
|
+
int main()
|
21
|
+
{
|
22
|
+
// Test cases for is_numeric function
|
23
|
+
assert(is_numeric("12345") == 1); // All numbers
|
24
|
+
assert(is_numeric("abc123") == 0); // Alphanumeric
|
25
|
+
assert(is_numeric("9999999") == 1); // All numbers
|
26
|
+
assert(is_numeric("") == 1); // Empty string
|
27
|
+
assert(is_numeric("00123") == 1); // Leading zeros
|
28
|
+
assert(is_numeric("12 34") == 0); // Space
|
29
|
+
assert(is_numeric("12.34") == 0); // Decimal point
|
30
|
+
assert(is_numeric("+123") == 0); // Positive sign
|
31
|
+
assert(is_numeric("-123") == 0); // Negative sign
|
32
|
+
|
33
|
+
printf("All tests passed!\n");
|
34
|
+
|
35
|
+
return 0;
|
36
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
|
5
|
+
FOUNDATIONAL_LIB_FUNC int is_string_alpha(const char *str)
|
6
|
+
{
|
7
|
+
if (!str)
|
8
|
+
{
|
9
|
+
return 0;
|
10
|
+
}
|
11
|
+
while (*str)
|
12
|
+
{
|
13
|
+
if (!isalnum(*str))
|
14
|
+
{
|
15
|
+
return 0;
|
16
|
+
}
|
17
|
+
str++;
|
18
|
+
}
|
19
|
+
return 1;
|
20
|
+
}
|
21
|
+
|
22
|
+
int main()
|
23
|
+
{
|
24
|
+
// Test case 1: Empty string should return 1
|
25
|
+
assert(is_string_alpha("") == 1);
|
26
|
+
|
27
|
+
// Test case 2: String with only alphabets should return 1
|
28
|
+
assert(is_string_alpha("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") == 1);
|
29
|
+
|
30
|
+
// Test case 3: String with only digits should return 1
|
31
|
+
assert(is_string_alpha("0123456789") == 1);
|
32
|
+
|
33
|
+
// Test case 4: String with both alphabets and digits should return 1
|
34
|
+
assert(is_string_alpha("abc123") == 1);
|
35
|
+
|
36
|
+
// Test case 5: String with special characters should return 0
|
37
|
+
assert(is_string_alpha("abc!@#") == 0);
|
38
|
+
|
39
|
+
// Test case 6: Null string should return 0
|
40
|
+
assert(is_string_alpha(NULL) == 0);
|
41
|
+
|
42
|
+
return 0;
|
43
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#include <assert.h>
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
int is_string_digit(const char *str)
|
6
|
+
{
|
7
|
+
if (*str == '\0')
|
8
|
+
{
|
9
|
+
return 1;
|
10
|
+
}
|
11
|
+
|
12
|
+
while (*str)
|
13
|
+
{
|
14
|
+
if (*str < '0' || *str > '9')
|
15
|
+
{
|
16
|
+
return 0;
|
17
|
+
}
|
18
|
+
str++;
|
19
|
+
}
|
20
|
+
return 1;
|
21
|
+
}
|
22
|
+
|
23
|
+
int main()
|
24
|
+
{
|
25
|
+
// Test case 1: Empty string
|
26
|
+
assert(is_string_digit("") == 1);
|
27
|
+
|
28
|
+
// Test case 2: Single non-digit character
|
29
|
+
assert(is_string_digit("a") == 0);
|
30
|
+
|
31
|
+
// Test case 3: Single digit character
|
32
|
+
assert(is_string_digit("5") == 1);
|
33
|
+
|
34
|
+
// Test case 4: String with all digits
|
35
|
+
assert(is_string_digit("1234567890") == 1);
|
36
|
+
|
37
|
+
// Test case 5: String with mixed characters including digits
|
38
|
+
assert(is_string_digit("abc123") == 0);
|
39
|
+
|
40
|
+
// Test case 6: String with special characters
|
41
|
+
assert(is_string_digit("!@#%$") == 0);
|
42
|
+
|
43
|
+
// Test case 7: String with leading whitespace
|
44
|
+
assert(is_string_digit(" 123") == 0);
|
45
|
+
|
46
|
+
// Test case 8: String with trailing whitespace
|
47
|
+
assert(is_string_digit("123 ") == 0);
|
48
|
+
|
49
|
+
// Test case 9: String with a mix of whitespace and digits
|
50
|
+
assert(is_string_digit("12 34") == 0);
|
51
|
+
|
52
|
+
printf("All tests passed successfully.\n");
|
53
|
+
return 0;
|
54
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
|
6
|
+
int is_string_lower(const char *str)
|
7
|
+
{
|
8
|
+
if (str == NULL)
|
9
|
+
{
|
10
|
+
return 0;
|
11
|
+
}
|
12
|
+
|
13
|
+
while (*str != '\0')
|
14
|
+
{
|
15
|
+
if (*str < 'a' || *str > 'z')
|
16
|
+
{
|
17
|
+
return 0;
|
18
|
+
}
|
19
|
+
str++;
|
20
|
+
}
|
21
|
+
|
22
|
+
return 1;
|
23
|
+
}
|
24
|
+
|
25
|
+
int main()
|
26
|
+
{
|
27
|
+
// Test case 1: All lowercase characters
|
28
|
+
const char *test_string1 = "abcdefghijklmnopqrstuvwxyz";
|
29
|
+
assert(is_string_lower(test_string1) == 1);
|
30
|
+
|
31
|
+
// Test case 2: Uppercase characters
|
32
|
+
const char *test_string2 = "abcDefg";
|
33
|
+
assert(is_string_lower(test_string2) == 0);
|
34
|
+
|
35
|
+
// Test case 3: Empty string
|
36
|
+
const char *test_string3 = "";
|
37
|
+
assert(is_string_lower(test_string3) == 1);
|
38
|
+
|
39
|
+
// Test case 4: NULL input
|
40
|
+
const char *test_string4 = NULL;
|
41
|
+
assert(is_string_lower(test_string4) == 0);
|
42
|
+
|
43
|
+
// Test case 5: Numbers and special characters
|
44
|
+
const char *test_string5 = "abc123";
|
45
|
+
assert(is_string_lower(test_string5) == 0);
|
46
|
+
|
47
|
+
printf("All test cases passed successfully.\n");
|
48
|
+
|
49
|
+
return 0;
|
50
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
|
3
|
+
#include <assert.h>
|
4
|
+
#include <stdio.h>
|
5
|
+
|
6
|
+
int is_string_space(const char *str)
|
7
|
+
{
|
8
|
+
if (str == NULL)
|
9
|
+
{
|
10
|
+
return 0;
|
11
|
+
}
|
12
|
+
while (*str != '\0')
|
13
|
+
{
|
14
|
+
if (*str != ' ' && *str != '\t')
|
15
|
+
{
|
16
|
+
return 0;
|
17
|
+
}
|
18
|
+
str++;
|
19
|
+
}
|
20
|
+
return 1;
|
21
|
+
}
|
22
|
+
|
23
|
+
int main()
|
24
|
+
{
|
25
|
+
// Test case 1: Empty string
|
26
|
+
const char *empty = "";
|
27
|
+
assert(is_string_space(empty) == 1);
|
28
|
+
|
29
|
+
// Test case 2: String with only spaces
|
30
|
+
const char *spaces = " ";
|
31
|
+
assert(is_string_space(spaces) == 1);
|
32
|
+
|
33
|
+
// Test case 3: String with only tabs
|
34
|
+
const char *tabs = "\t\t\t";
|
35
|
+
assert(is_string_space(tabs) == 1);
|
36
|
+
|
37
|
+
// Test case 4: String with spaces and tabs
|
38
|
+
const char *mixed = " \t \t ";
|
39
|
+
assert(is_string_space(mixed) == 1);
|
40
|
+
|
41
|
+
// Test case 5: String with other characters
|
42
|
+
const char *non_space = "not all spaces";
|
43
|
+
assert(is_string_space(non_space) == 0);
|
44
|
+
|
45
|
+
printf("All test cases passed!\n");
|
46
|
+
|
47
|
+
return 0;
|
48
|
+
}
|