foundational_lib2 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (529) hide show
  1. checksums.yaml +7 -0
  2. data/Articles/1.html +524 -0
  3. data/Articles/10.html +63 -0
  4. data/Articles/11.html +153 -0
  5. data/Articles/12.html +15 -0
  6. data/Articles/13.html +14 -0
  7. data/Articles/14.html +299 -0
  8. data/Articles/15.html +125 -0
  9. data/Articles/16.html +908 -0
  10. data/Articles/2.html +83 -0
  11. data/Articles/3.html +46 -0
  12. data/Articles/4.html +108 -0
  13. data/Articles/5.html +186 -0
  14. data/Articles/6.html +49 -0
  15. data/Articles/7.html +25 -0
  16. data/Articles/8.html +128 -0
  17. data/Articles/9.html +72 -0
  18. data/Articles/convert_html_to_markdown.sh +8 -0
  19. data/Articles/css.css +54 -0
  20. data/Articles/format.rb +95 -0
  21. data/Articles/index.html +34 -0
  22. data/Articles_MD/1.html.md +451 -0
  23. data/Articles_MD/10.html.md +57 -0
  24. data/Articles_MD/11.html.md +231 -0
  25. data/Articles_MD/12.html.md +16 -0
  26. data/Articles_MD/13.html.md +15 -0
  27. data/Articles_MD/14.html.md +280 -0
  28. data/Articles_MD/15.html.md +135 -0
  29. data/Articles_MD/16.html.md +840 -0
  30. data/Articles_MD/17.html.md +838 -0
  31. data/Articles_MD/2.html.md +82 -0
  32. data/Articles_MD/3.html.md +163 -0
  33. data/Articles_MD/4.html.md +137 -0
  34. data/Articles_MD/5.html.md +175 -0
  35. data/Articles_MD/6.html.md +47 -0
  36. data/Articles_MD/7.html.md +24 -0
  37. data/Articles_MD/8.html.md +71 -0
  38. data/Articles_MD/9.html.md +68 -0
  39. data/Articles_MD/index.html.md +25 -0
  40. data/DOCS.md +11153 -0
  41. data/GENERATE_CUSTOM_FOUNDATIONALLIB.rb +89 -0
  42. data/LICENSE.md +16 -0
  43. data/NOTE.md +29 -0
  44. data/README.md +120 -0
  45. data/custom_library_example.h +13999 -0
  46. data/docs/Doxyfile +2746 -0
  47. data/docs/LICENSE +21 -0
  48. data/docs/Makefile +39 -0
  49. data/docs/custom-alternative.css +54 -0
  50. data/docs/custom.css +57 -0
  51. data/docs/doxygen-awesome-darkmode-toggle.js +157 -0
  52. data/docs/doxygen-awesome-fragment-copy-button.js +85 -0
  53. data/docs/doxygen-awesome-interactive-toc.js +81 -0
  54. data/docs/doxygen-awesome-paragraph-link.js +51 -0
  55. data/docs/doxygen-awesome-sidebar-only-darkmode-toggle.css +40 -0
  56. data/docs/doxygen-awesome-sidebar-only.css +116 -0
  57. data/docs/doxygen-awesome-tabs.js +90 -0
  58. data/docs/doxygen-awesome.css +2669 -0
  59. data/docs/doxygen-custom/custom-alternative.css +54 -0
  60. data/docs/doxygen-custom/custom.css +57 -0
  61. data/docs/doxygen-custom/header.html +90 -0
  62. data/docs/doxygen-custom/toggle-alternative-theme.js +12 -0
  63. data/docs/header.html +90 -0
  64. data/docs/html/html/annotated.html +145 -0
  65. data/docs/html/html/annotated_dup.js +10 -0
  66. data/docs/html/html/bc_s.png +0 -0
  67. data/docs/html/html/bdwn.png +0 -0
  68. data/docs/html/html/classes.html +149 -0
  69. data/docs/html/html/closed.png +0 -0
  70. data/docs/html/html/custom-alternative.css +54 -0
  71. data/docs/html/html/custom.css +57 -0
  72. data/docs/html/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +141 -0
  73. data/docs/html/html/dir_68267d1309a1af8e8297ef4c3efbcdba.js +4 -0
  74. data/docs/html/html/doc.png +0 -0
  75. data/docs/html/html/doxygen-awesome-darkmode-toggle.js +157 -0
  76. data/docs/html/html/doxygen-awesome-fragment-copy-button.js +85 -0
  77. data/docs/html/html/doxygen-awesome-interactive-toc.js +81 -0
  78. data/docs/html/html/doxygen-awesome-paragraph-link.js +51 -0
  79. data/docs/html/html/doxygen-awesome-sidebar-only-darkmode-toggle.css +40 -0
  80. data/docs/html/html/doxygen-awesome-sidebar-only.css +116 -0
  81. data/docs/html/html/doxygen-awesome-tabs.js +90 -0
  82. data/docs/html/html/doxygen-awesome.css +2669 -0
  83. data/docs/html/html/doxygen.css +1793 -0
  84. data/docs/html/html/doxygen.svg +26 -0
  85. data/docs/html/html/dynsections.js +121 -0
  86. data/docs/html/html/files.html +140 -0
  87. data/docs/html/html/files_dup.js +4 -0
  88. data/docs/html/html/folderclosed.png +0 -0
  89. data/docs/html/html/folderopen.png +0 -0
  90. data/docs/html/html/foundationallib_8h.html +17294 -0
  91. data/docs/html/html/foundationallib_8h.js +445 -0
  92. data/docs/html/html/foundationallib_8h__incl.map +15 -0
  93. data/docs/html/html/foundationallib_8h__incl.md5 +1 -0
  94. data/docs/html/html/foundationallib_8h__incl.svg +202 -0
  95. data/docs/html/html/foundationallib_8h_source.html +9125 -0
  96. data/docs/html/html/functions.html +188 -0
  97. data/docs/html/html/functions_vars.html +188 -0
  98. data/docs/html/html/globals.html +158 -0
  99. data/docs/html/html/globals_b.html +137 -0
  100. data/docs/html/html/globals_c.html +173 -0
  101. data/docs/html/html/globals_d.html +185 -0
  102. data/docs/html/html/globals_defs.html +361 -0
  103. data/docs/html/html/globals_dup.js +19 -0
  104. data/docs/html/html/globals_e.html +221 -0
  105. data/docs/html/html/globals_f.html +560 -0
  106. data/docs/html/html/globals_func.html +158 -0
  107. data/docs/html/html/globals_func.js +19 -0
  108. data/docs/html/html/globals_func_b.html +137 -0
  109. data/docs/html/html/globals_func_c.html +173 -0
  110. data/docs/html/html/globals_func_d.html +179 -0
  111. data/docs/html/html/globals_func_e.html +218 -0
  112. data/docs/html/html/globals_func_f.html +341 -0
  113. data/docs/html/html/globals_func_g.html +140 -0
  114. data/docs/html/html/globals_func_i.html +188 -0
  115. data/docs/html/html/globals_func_j.html +137 -0
  116. data/docs/html/html/globals_func_l.html +152 -0
  117. data/docs/html/html/globals_func_m.html +152 -0
  118. data/docs/html/html/globals_func_p.html +374 -0
  119. data/docs/html/html/globals_func_r.html +194 -0
  120. data/docs/html/html/globals_func_s.html +386 -0
  121. data/docs/html/html/globals_func_u.html +140 -0
  122. data/docs/html/html/globals_func_w.html +140 -0
  123. data/docs/html/html/globals_g.html +140 -0
  124. data/docs/html/html/globals_i.html +188 -0
  125. data/docs/html/html/globals_j.html +137 -0
  126. data/docs/html/html/globals_l.html +152 -0
  127. data/docs/html/html/globals_m.html +152 -0
  128. data/docs/html/html/globals_p.html +374 -0
  129. data/docs/html/html/globals_r.html +194 -0
  130. data/docs/html/html/globals_s.html +389 -0
  131. data/docs/html/html/globals_type.html +144 -0
  132. data/docs/html/html/globals_u.html +140 -0
  133. data/docs/html/html/globals_vars.html +135 -0
  134. data/docs/html/html/globals_w.html +140 -0
  135. data/docs/html/html/graph_legend.html +194 -0
  136. data/docs/html/html/graph_legend.md5 +1 -0
  137. data/docs/html/html/graph_legend.svg +117 -0
  138. data/docs/html/html/index.html +134 -0
  139. data/docs/html/html/jquery.js +35 -0
  140. data/docs/html/html/logo.drawio.svg +1 -0
  141. data/docs/html/html/menu.js +51 -0
  142. data/docs/html/html/menudata.js +75 -0
  143. data/docs/html/html/nav_f.png +0 -0
  144. data/docs/html/html/nav_g.png +0 -0
  145. data/docs/html/html/nav_h.png +0 -0
  146. data/docs/html/html/navtree.css +146 -0
  147. data/docs/html/html/navtree.js +546 -0
  148. data/docs/html/html/navtreedata.js +57 -0
  149. data/docs/html/html/navtreeindex0.js +253 -0
  150. data/docs/html/html/navtreeindex1.js +253 -0
  151. data/docs/html/html/navtreeindex2.js +18 -0
  152. data/docs/html/html/open.png +0 -0
  153. data/docs/html/html/resize.js +140 -0
  154. data/docs/html/html/search/all_0.html +37 -0
  155. data/docs/html/html/search/all_0.js +12 -0
  156. data/docs/html/html/search/all_1.html +37 -0
  157. data/docs/html/html/search/all_1.js +4 -0
  158. data/docs/html/html/search/all_10.html +37 -0
  159. data/docs/html/html/search/all_10.js +6 -0
  160. data/docs/html/html/search/all_11.html +37 -0
  161. data/docs/html/html/search/all_11.js +5 -0
  162. data/docs/html/html/search/all_12.html +37 -0
  163. data/docs/html/html/search/all_12.js +4 -0
  164. data/docs/html/html/search/all_13.html +37 -0
  165. data/docs/html/html/search/all_13.js +5 -0
  166. data/docs/html/html/search/all_2.html +37 -0
  167. data/docs/html/html/search/all_2.js +17 -0
  168. data/docs/html/html/search/all_3.html +37 -0
  169. data/docs/html/html/search/all_3.js +21 -0
  170. data/docs/html/html/search/all_4.html +37 -0
  171. data/docs/html/html/search/all_4.js +34 -0
  172. data/docs/html/html/search/all_5.html +37 -0
  173. data/docs/html/html/search/all_5.js +147 -0
  174. data/docs/html/html/search/all_6.html +37 -0
  175. data/docs/html/html/search/all_6.js +5 -0
  176. data/docs/html/html/search/all_7.html +37 -0
  177. data/docs/html/html/search/all_7.js +22 -0
  178. data/docs/html/html/search/all_8.html +37 -0
  179. data/docs/html/html/search/all_8.js +4 -0
  180. data/docs/html/html/search/all_9.html +37 -0
  181. data/docs/html/html/search/all_9.js +4 -0
  182. data/docs/html/html/search/all_a.html +37 -0
  183. data/docs/html/html/search/all_a.js +9 -0
  184. data/docs/html/html/search/all_b.html +37 -0
  185. data/docs/html/html/search/all_b.js +9 -0
  186. data/docs/html/html/search/all_c.html +37 -0
  187. data/docs/html/html/search/all_c.js +4 -0
  188. data/docs/html/html/search/all_d.html +37 -0
  189. data/docs/html/html/search/all_d.js +83 -0
  190. data/docs/html/html/search/all_e.html +37 -0
  191. data/docs/html/html/search/all_e.js +25 -0
  192. data/docs/html/html/search/all_f.html +37 -0
  193. data/docs/html/html/search/all_f.js +91 -0
  194. data/docs/html/html/search/classes_0.html +37 -0
  195. data/docs/html/html/search/classes_0.js +5 -0
  196. data/docs/html/html/search/classes_1.html +37 -0
  197. data/docs/html/html/search/classes_1.js +5 -0
  198. data/docs/html/html/search/classes_2.html +37 -0
  199. data/docs/html/html/search/classes_2.js +5 -0
  200. data/docs/html/html/search/classes_3.html +37 -0
  201. data/docs/html/html/search/classes_3.js +4 -0
  202. data/docs/html/html/search/close.svg +31 -0
  203. data/docs/html/html/search/defines_0.html +37 -0
  204. data/docs/html/html/search/defines_0.js +4 -0
  205. data/docs/html/html/search/defines_1.html +37 -0
  206. data/docs/html/html/search/defines_1.js +4 -0
  207. data/docs/html/html/search/defines_2.html +37 -0
  208. data/docs/html/html/search/defines_2.js +74 -0
  209. data/docs/html/html/search/files_0.html +37 -0
  210. data/docs/html/html/search/files_0.js +4 -0
  211. data/docs/html/html/search/functions_0.html +37 -0
  212. data/docs/html/html/search/functions_0.js +11 -0
  213. data/docs/html/html/search/functions_1.html +37 -0
  214. data/docs/html/html/search/functions_1.js +4 -0
  215. data/docs/html/html/search/functions_2.html +37 -0
  216. data/docs/html/html/search/functions_2.js +16 -0
  217. data/docs/html/html/search/functions_3.html +37 -0
  218. data/docs/html/html/search/functions_3.js +18 -0
  219. data/docs/html/html/search/functions_4.html +37 -0
  220. data/docs/html/html/search/functions_4.js +31 -0
  221. data/docs/html/html/search/functions_5.html +37 -0
  222. data/docs/html/html/search/functions_5.js +72 -0
  223. data/docs/html/html/search/functions_6.html +37 -0
  224. data/docs/html/html/search/functions_6.js +5 -0
  225. data/docs/html/html/search/functions_7.html +37 -0
  226. data/docs/html/html/search/functions_7.js +21 -0
  227. data/docs/html/html/search/functions_8.html +37 -0
  228. data/docs/html/html/search/functions_8.js +4 -0
  229. data/docs/html/html/search/functions_9.html +37 -0
  230. data/docs/html/html/search/functions_9.js +9 -0
  231. data/docs/html/html/search/functions_a.html +37 -0
  232. data/docs/html/html/search/functions_a.js +9 -0
  233. data/docs/html/html/search/functions_b.html +37 -0
  234. data/docs/html/html/search/functions_b.js +83 -0
  235. data/docs/html/html/search/functions_c.html +37 -0
  236. data/docs/html/html/search/functions_c.js +23 -0
  237. data/docs/html/html/search/functions_d.html +37 -0
  238. data/docs/html/html/search/functions_d.js +87 -0
  239. data/docs/html/html/search/functions_e.html +37 -0
  240. data/docs/html/html/search/functions_e.js +5 -0
  241. data/docs/html/html/search/functions_f.html +37 -0
  242. data/docs/html/html/search/functions_f.js +5 -0
  243. data/docs/html/html/search/mag_sel.svg +74 -0
  244. data/docs/html/html/search/nomatches.html +13 -0
  245. data/docs/html/html/search/search.css +257 -0
  246. data/docs/html/html/search/search.js +816 -0
  247. data/docs/html/html/search/search_l.png +0 -0
  248. data/docs/html/html/search/search_m.png +0 -0
  249. data/docs/html/html/search/search_r.png +0 -0
  250. data/docs/html/html/search/searchdata.js +33 -0
  251. data/docs/html/html/search/typedefs_0.html +37 -0
  252. data/docs/html/html/search/typedefs_0.js +4 -0
  253. data/docs/html/html/search/typedefs_1.html +37 -0
  254. data/docs/html/html/search/typedefs_1.js +5 -0
  255. data/docs/html/html/search/typedefs_2.html +37 -0
  256. data/docs/html/html/search/typedefs_2.js +4 -0
  257. data/docs/html/html/search/variables_0.html +37 -0
  258. data/docs/html/html/search/variables_0.js +4 -0
  259. data/docs/html/html/search/variables_1.html +37 -0
  260. data/docs/html/html/search/variables_1.js +4 -0
  261. data/docs/html/html/search/variables_2.html +37 -0
  262. data/docs/html/html/search/variables_2.js +5 -0
  263. data/docs/html/html/search/variables_3.html +37 -0
  264. data/docs/html/html/search/variables_3.js +5 -0
  265. data/docs/html/html/search/variables_4.html +37 -0
  266. data/docs/html/html/search/variables_4.js +4 -0
  267. data/docs/html/html/search/variables_5.html +37 -0
  268. data/docs/html/html/search/variables_5.js +4 -0
  269. data/docs/html/html/search/variables_6.html +37 -0
  270. data/docs/html/html/search/variables_6.js +4 -0
  271. data/docs/html/html/search/variables_7.html +37 -0
  272. data/docs/html/html/search/variables_7.js +5 -0
  273. data/docs/html/html/search/variables_8.html +37 -0
  274. data/docs/html/html/search/variables_8.js +5 -0
  275. data/docs/html/html/search/variables_9.html +37 -0
  276. data/docs/html/html/search/variables_9.js +5 -0
  277. data/docs/html/html/search/variables_a.html +37 -0
  278. data/docs/html/html/search/variables_a.js +4 -0
  279. data/docs/html/html/splitbar.png +0 -0
  280. data/docs/html/html/struct_dict.html +195 -0
  281. data/docs/html/html/struct_dict.js +6 -0
  282. data/docs/html/html/struct_dict_key_value.html +197 -0
  283. data/docs/html/html/struct_dict_key_value.js +6 -0
  284. data/docs/html/html/struct_frozen_dict.html +195 -0
  285. data/docs/html/html/struct_frozen_dict.js +6 -0
  286. data/docs/html/html/struct_frozen_set.html +195 -0
  287. data/docs/html/html/struct_frozen_set.js +6 -0
  288. data/docs/html/html/struct_set.html +195 -0
  289. data/docs/html/html/struct_set.js +6 -0
  290. data/docs/html/html/struct_set_key.html +179 -0
  291. data/docs/html/html/struct_set_key.js +5 -0
  292. data/docs/html/html/struct_thread_data.html +291 -0
  293. data/docs/html/html/struct_thread_data.js +12 -0
  294. data/docs/html/html/sync_off.png +0 -0
  295. data/docs/html/html/sync_on.png +0 -0
  296. data/docs/html/html/tab_a.png +0 -0
  297. data/docs/html/html/tab_b.png +0 -0
  298. data/docs/html/html/tab_h.png +0 -0
  299. data/docs/html/html/tab_s.png +0 -0
  300. data/docs/html/html/tabs.css +1 -0
  301. data/docs/html/html/toggle-alternative-theme.js +12 -0
  302. data/docs/img/screenshot.png +0 -0
  303. data/docs/img/testimage.png +0 -0
  304. data/docs/img/theme-variants-base.drawio.svg +117 -0
  305. data/docs/img/theme-variants-sidebar-only.drawio.svg +102 -0
  306. data/docs/logo.drawio.svg +1 -0
  307. data/docs/package.json +34 -0
  308. data/docs/src/foundationallib.h +13061 -0
  309. data/docs/toggle-alternative-theme.js +12 -0
  310. data/example_of_transpilation_comments.txt +167 -0
  311. data/foundationallib.gemspec +14 -0
  312. data/foundationallib.h +13999 -0
  313. data/platforms/README.md +17 -0
  314. data/platforms/header_and_separate_compilation_unit/Makefile +18 -0
  315. data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.c +13014 -0
  316. data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.h +316 -0
  317. data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.o +0 -0
  318. data/platforms/header_and_separate_compilation_unit/non_inline_example +0 -0
  319. data/platforms/header_and_separate_compilation_unit/non_inline_example.c +11 -0
  320. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/Makefile +18 -0
  321. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.c +13014 -0
  322. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.h +317 -0
  323. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.o +0 -0
  324. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/non_inline_example +0 -0
  325. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/non_inline_example.c +11 -0
  326. data/platforms/header_and_separate_compilation_unit_all_safe_funcs/wont_compile.c +8 -0
  327. data/tests/decoupled_thorough_tests +0 -0
  328. data/tests/decoupled_thorough_tests.c +95 -0
  329. data/tests/decoupled_thorough_tests.exe +0 -0
  330. data/tests/decoupled_thorough_tests32 +0 -0
  331. data/tests/deps_for_testing +9 -0
  332. data/tests/deps_for_testing.sh +23 -0
  333. data/tests/destination_file.txt +1 -0
  334. data/tests/ex_ample.txt +1 -0
  335. data/tests/existing_file.txt +127 -0
  336. data/tests/lib_and_tests +0 -0
  337. data/tests/lib_and_tests.c +15920 -0
  338. data/tests/lib_and_tests.exe +0 -0
  339. data/tests/lib_and_tests32 +0 -0
  340. data/tests/more/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
  341. data/tests/more/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
  342. data/tests/more/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
  343. data/tests/more/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
  344. data/tests/more/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
  345. data/tests/more/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
  346. data/tests/more/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
  347. data/tests/more/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
  348. data/tests/more/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
  349. data/tests/more/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
  350. data/tests/more/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
  351. data/tests/more/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
  352. data/tests/more/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
  353. data/tests/more/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
  354. data/tests/more/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
  355. data/tests/more/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
  356. data/tests/more/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
  357. data/tests/more/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
  358. data/tests/more/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
  359. data/tests/more/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
  360. data/tests/more/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
  361. data/tests/more/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
  362. data/tests/more/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
  363. data/tests/more/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
  364. data/tests/more/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
  365. data/tests/more/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
  366. data/tests/more/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
  367. data/tests/more/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
  368. data/tests/more/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
  369. data/tests/more/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
  370. data/tests/more/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
  371. data/tests/more/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
  372. data/tests/more/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
  373. data/tests/more/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
  374. data/tests/more/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
  375. data/tests/more/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
  376. data/tests/more/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
  377. data/tests/more/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
  378. data/tests/more/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
  379. data/tests/more/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
  380. data/tests/more/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
  381. data/tests/more/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
  382. data/tests/more/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
  383. data/tests/more/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
  384. data/tests/more/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
  385. data/tests/more/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
  386. data/tests/more/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
  387. data/tests/more/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
  388. data/tests/more/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
  389. data/tests/more/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
  390. data/tests/more/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
  391. data/tests/more/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
  392. data/tests/more/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
  393. data/tests/more/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
  394. data/tests/more/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
  395. data/tests/more/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
  396. data/tests/more/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
  397. data/tests/more/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
  398. data/tests/more/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
  399. data/tests/more/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
  400. data/tests/more/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
  401. data/tests/more/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
  402. data/tests/more/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
  403. data/tests/more/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
  404. data/tests/more/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
  405. data/tests/more/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
  406. data/tests/more/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
  407. data/tests/more/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
  408. data/tests/more/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
  409. data/tests/more/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
  410. data/tests/more/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
  411. data/tests/more/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
  412. data/tests/more/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
  413. data/tests/more/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
  414. data/tests/more/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
  415. data/tests/more/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
  416. data/tests/more/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
  417. data/tests/more/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
  418. data/tests/more/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
  419. data/tests/more/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
  420. data/tests/more/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
  421. data/tests/more/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
  422. data/tests/more/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
  423. data/tests/more/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
  424. data/tests/more/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
  425. data/tests/more/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
  426. data/tests/more/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
  427. data/tests/more/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
  428. data/tests/more/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
  429. data/tests/more/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
  430. data/tests/more/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
  431. data/tests/more/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
  432. data/tests/more/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
  433. data/tests/more/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
  434. data/tests/more/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
  435. data/tests/more/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
  436. data/tests/more/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
  437. data/tests/more/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
  438. data/tests/more/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
  439. data/tests/more/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
  440. data/tests/more/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
  441. data/tests/more/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
  442. data/tests/more/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
  443. data/tests/more/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
  444. data/tests/more/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
  445. data/tests/more/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
  446. data/tests/more/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
  447. data/tests/more/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
  448. data/tests/more/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
  449. data/tests/more/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
  450. data/tests/more/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
  451. data/tests/more/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
  452. data/tests/more/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
  453. data/tests/more/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
  454. data/tests/more/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
  455. data/tests/more/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
  456. data/tests/more/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
  457. data/tests/more/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
  458. data/tests/more/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
  459. data/tests/more/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
  460. data/tests/more/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
  461. data/tests/more/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
  462. data/tests/more/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
  463. data/tests/more/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
  464. data/tests/more/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
  465. data/tests/more/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
  466. data/tests/more/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
  467. data/tests/more/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
  468. data/tests/more/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
  469. data/tests/more/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
  470. data/tests/more/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
  471. data/tests/more/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
  472. data/tests/more/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
  473. data/tests/more/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
  474. data/tests/more/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
  475. data/tests/more/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
  476. data/tests/more/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
  477. data/tests/more/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
  478. data/tests/more/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
  479. data/tests/more/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
  480. data/tests/more/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
  481. data/tests/more/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
  482. data/tests/more/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
  483. data/tests/more/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
  484. data/tests/more/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
  485. data/tests/more/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
  486. data/tests/more/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
  487. data/tests/more/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
  488. data/tests/more/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
  489. data/tests/more/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
  490. data/tests/more/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
  491. data/tests/more/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
  492. data/tests/more/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
  493. data/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
  494. data/tests/run_test_suite.sh +117 -0
  495. data/tests/source_file.txt +1 -0
  496. data/tests/test_log.txt +1047 -0
  497. data/tools/FUTURE +18 -0
  498. data/tools/HEADERS.h +316 -0
  499. data/tools/HEADERS_ONLY_FUNCTIONS.h +284 -0
  500. data/tools/HEADERS_WITH_PREFIX.h +33 -0
  501. data/tools/RSUB_LICENSE.txt +25 -0
  502. data/tools/benchmark_libc.c +263 -0
  503. data/tools/deprecated/GENERATE_CUSTOM_FOUNDATIONALLIB.sh.old +67 -0
  504. data/tools/deps_for_testing.sh +23 -0
  505. data/tools/documentation_generate +17 -0
  506. data/tools/foundationallib.h +13999 -0
  507. data/tools/funcs_c +15858 -0
  508. data/tools/funcs_c_with_tests.c +15920 -0
  509. data/tools/gen_video_new +444 -0
  510. data/tools/gen_video_new_times +41 -0
  511. data/tools/generate_promo_video_for_library.rb +19 -0
  512. data/tools/index.html +147 -0
  513. data/tools/lib.html +20 -0
  514. data/tools/lib2.html +22 -0
  515. data/tools/lib3.html +22 -0
  516. data/tools/lynx.rb +145 -0
  517. data/tools/make_image_of_docs +741 -0
  518. data/tools/pic.png +0 -0
  519. data/tools/pic2.png +0 -0
  520. data/tools/pic3.png +0 -0
  521. data/tools/play_with_string_replace_functions.c +236 -0
  522. data/tools/rsub +0 -0
  523. data/tools/rsub.c +501 -0
  524. data/tools/run_lib +365 -0
  525. data/tools/update +44 -0
  526. data/tools/with_tests +0 -0
  527. data/tools/with_tests32 +0 -0
  528. data/transpile_slow_scripting_into_c.rb +225 -0
  529. metadata +693 -0
@@ -0,0 +1,47 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+ #include <stddef.h>
4
+ #include <stdio.h>
5
+
6
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_longs(const long *array, const long *array2, size_t size)
7
+ {
8
+ for (size_t i = 0; i < size; i++)
9
+ {
10
+ if (array[i] != array2[i])
11
+ {
12
+ return 0;
13
+ }
14
+ }
15
+ return 1;
16
+ }
17
+
18
+ int main()
19
+ {
20
+ // Test case 1: Arrays are equal
21
+ long array1[] = {1, 2, 3, 4};
22
+ long array2[] = {1, 2, 3, 4};
23
+ assert(equal_array_of_longs(array1, array2, 4) == 1);
24
+
25
+ // Test case 2: Arrays are not equal
26
+ long array3[] = {1, 2, 3, 4};
27
+ long array4[] = {1, 2, 3, 5};
28
+ assert(equal_array_of_longs(array3, array4, 4) == 0);
29
+
30
+ // Test case 3: Arrays are empty
31
+ long *array5 = NULL;
32
+ long *array6 = NULL;
33
+ assert(equal_array_of_longs(array5, array6, 0) == 1);
34
+
35
+ // Test case 4: Arrays have one element and are equal
36
+ long array7[] = {1000};
37
+ long array8[] = {1000};
38
+ assert(equal_array_of_longs(array7, array8, 1) == 1);
39
+
40
+ // Test case 5: Arrays have one element and are not equal
41
+ long array9[] = {1000};
42
+ long array10[] = {999};
43
+ assert(equal_array_of_longs(array9, array10, 1) == 0);
44
+
45
+ printf("All tests passed successfully!\n");
46
+ return 0;
47
+ }
@@ -0,0 +1,36 @@
1
+ #include "../foundationallib.h"
2
+
3
+ #include <assert.h>
4
+ #include <stdio.h>
5
+
6
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_short_ptrs(const short **array, const short **array2, size_t size)
7
+ {
8
+ for (size_t i = 0; i < size; i++)
9
+ {
10
+ if (*array[i] != *array2[i])
11
+ {
12
+ return 0;
13
+ }
14
+ }
15
+ return 1;
16
+ }
17
+
18
+ void test_equal_array_of_short_ptrs()
19
+ {
20
+ const short s1[] = {1, 2, 3};
21
+ const short s2[] = {1, 2, 3};
22
+ const short s3[] = {1, 3, 3};
23
+ const short *p1[] = {s1, s2};
24
+ const short *p2[] = {s1, s2};
25
+ const short *p3[] = {s1, s3};
26
+
27
+ assert(equal_array_of_short_ptrs(p1, p2, 2) == 1);
28
+ assert(equal_array_of_short_ptrs(p1, p3, 2) == 0);
29
+ }
30
+
31
+ int main()
32
+ {
33
+ test_equal_array_of_short_ptrs();
34
+ printf("All tests passed successfully!\n");
35
+ return 0;
36
+ }
@@ -0,0 +1,52 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+ #include <stdio.h>
4
+
5
+ #define TEST_CASES 5
6
+
7
+ // Function to test
8
+ int equal_array_of_shorts(const short *array, const short *array2, size_t size);
9
+
10
+ // Test cases
11
+ void test_equal_arrays()
12
+ {
13
+ short arr1[] = {1, 2, 3, 4, 5};
14
+ short arr2[] = {1, 2, 3, 4, 5};
15
+ assert(equal_array_of_shorts(arr1, arr2, 5) == 1);
16
+ }
17
+
18
+ void test_unequal_arrays()
19
+ {
20
+ short arr1[] = {1, 2, 3, 4, 5};
21
+ short arr2[] = {1, 2, 3, 4, 6};
22
+ assert(equal_array_of_shorts(arr1, arr2, 5) == 0);
23
+ }
24
+
25
+ void test_empty_arrays()
26
+ {
27
+ short arr1[] = {};
28
+ short arr2[] = {};
29
+ assert(equal_array_of_shorts(arr1, arr2, 0) == 1);
30
+ }
31
+
32
+ void test_single_element_arrays()
33
+ {
34
+ short arr1[] = {1};
35
+ short arr2[] = {2};
36
+ assert(equal_array_of_shorts(arr1, arr2, 1) == 0);
37
+ }
38
+
39
+ void test_null_arrays() { assert(equal_array_of_shorts(NULL, NULL, 0) == 1); }
40
+
41
+ // Run test cases
42
+ int main()
43
+ {
44
+ test_equal_arrays();
45
+ test_unequal_arrays();
46
+ test_empty_arrays();
47
+ test_single_element_arrays();
48
+ test_null_arrays();
49
+
50
+ printf("All test cases passed!\n");
51
+ return 0;
52
+ }
@@ -0,0 +1,62 @@
1
+ #include "../foundationallib.h"
2
+
3
+ #include <assert.h>
4
+ #include <stdio.h>
5
+
6
+ int equal_array_of_size_t_ptrs(const size_t **array, const size_t **array2, size_t size)
7
+ {
8
+ if (array == NULL && array2 == NULL)
9
+ {
10
+ return 1;
11
+ }
12
+ if (array == NULL || array2 == NULL)
13
+ {
14
+ return 0;
15
+ }
16
+ for (size_t i = 0; i < size; i++)
17
+ {
18
+ if (array[i] != array2[i])
19
+ {
20
+ return 0;
21
+ }
22
+ }
23
+ return 1;
24
+ }
25
+
26
+ void test_equal_array_of_size_t_ptrs()
27
+ {
28
+ // Test case 1: Empty arrays
29
+ const size_t *empty_array1[] = {NULL};
30
+ const size_t *empty_array2[] = {NULL};
31
+ assert(equal_array_of_size_t_ptrs(empty_array1, empty_array2, 0) == 1);
32
+
33
+ // Test case 2: Arrays with same single element
34
+ const size_t value = 42;
35
+ const size_t *array1[] = {&value};
36
+ const size_t *array2[] = {&value};
37
+ assert(equal_array_of_size_t_ptrs(array1, array2, 1) == 1);
38
+
39
+ // Test case 3: Arrays with different single elements
40
+ const size_t different_value = 100;
41
+ const size_t *array3[] = {&value};
42
+ const size_t *array4[] = {&different_value};
43
+ assert(equal_array_of_size_t_ptrs(array3, array4, 1) == 0);
44
+
45
+ // Test case 4: Arrays with multiple elements
46
+ const size_t value1 = 10, value2 = 20, value3 = 30;
47
+ const size_t *array5[] = {&value1, &value2, &value3};
48
+ const size_t *array6[] = {&value1, &value2, &value3};
49
+ assert(equal_array_of_size_t_ptrs(array5, array6, 3) == 1);
50
+
51
+ // Test case 5: Arrays with different multiple elements
52
+ const size_t *array7[] = {&value1, &value2, &value3};
53
+ const size_t *array8[] = {&value1, &value3, &value2};
54
+ assert(equal_array_of_size_t_ptrs(array7, array8, 3) == 0);
55
+ }
56
+
57
+ int main()
58
+ {
59
+ test_equal_array_of_size_t_ptrs();
60
+ printf("All tests passed!\n");
61
+ return 0;
62
+ }
@@ -0,0 +1,62 @@
1
+ #include <assert.h>
2
+
3
+ #include "../foundationallib.h"
4
+ int main()
5
+ {
6
+ // Test case 1: Arrays are equal
7
+ {
8
+ const size_t arr1[] = {1, 2, 3, 4, 5};
9
+ const size_t arr2[] = {1, 2, 3, 4, 5};
10
+ size_t size = 5;
11
+ int result = equal_array_of_size_ts(arr1, arr2, size);
12
+ assert(result == 1);
13
+ }
14
+
15
+ // Test case 2: Arrays are not equal
16
+ {
17
+ const size_t arr1[] = {1, 2, 3};
18
+ const size_t arr2[] = {1, 2, 4};
19
+ size_t size = 3;
20
+ int result = equal_array_of_size_ts(arr1, arr2, size);
21
+ assert(result == 0);
22
+ }
23
+
24
+ // Test case 3: Empty arrays
25
+ {
26
+ const size_t *arr1 = NULL;
27
+ const size_t *arr2 = NULL;
28
+ size_t size = 0;
29
+ int result = equal_array_of_size_ts(arr1, arr2, size);
30
+ assert(result == 1);
31
+ }
32
+
33
+ // Test case 4: Arrays of different sizes
34
+ {
35
+ const size_t arr1[] = {1, 2, 3};
36
+ const size_t arr2[] = {1, 2};
37
+ size_t size1 = 3;
38
+ size_t size2 = 2;
39
+ int result = equal_array_of_size_ts(arr1, arr2, size1);
40
+ assert(result == 0);
41
+ }
42
+
43
+ // Test case 5: Large arrays
44
+ {
45
+ const size_t size = 10000;
46
+ size_t *arr1 = (size_t *)malloc(size * sizeof(size_t));
47
+ size_t *arr2 = (size_t *)malloc(size * sizeof(size_t));
48
+ for (size_t i = 0; i < size; i++)
49
+ {
50
+ arr1[i] = i;
51
+ arr2[i] = i;
52
+ }
53
+ int result = equal_array_of_size_ts(arr1, arr2, size);
54
+ assert(result == 1);
55
+ free(arr1);
56
+ free(arr2);
57
+ }
58
+
59
+ printf("All test cases passed successfully!\n");
60
+
61
+ return 0;
62
+ }
@@ -0,0 +1,46 @@
1
+ #include "../foundationallib.h"
2
+
3
+ #include <assert.h>
4
+
5
+ int equal_array_of_uchar_ptrs(const unsigned char **array, const unsigned char **array2, size_t size)
6
+ {
7
+ for (size_t i = 0; i < size; i++)
8
+ {
9
+ if (array[i] != array2[i])
10
+ {
11
+ return 0;
12
+ }
13
+ }
14
+ return 1;
15
+ }
16
+
17
+ int main()
18
+ {
19
+ const unsigned char *arr1[] = {"foo", "bar", "baz"};
20
+ const unsigned char *arr2[] = {"foo", "bar", "baz"};
21
+ const unsigned char *arr3[] = {"foo", "bar", "qux"};
22
+
23
+ // Test case 1: Arrays are equal
24
+ assert(equal_array_of_uchar_ptrs(arr1, arr2, 3) == 1);
25
+
26
+ // Test case 2: Arrays are not equal
27
+ assert(equal_array_of_uchar_ptrs(arr1, arr3, 3) == 0);
28
+
29
+ // Test case 3: Arrays with different sizes are not equal
30
+ assert(equal_array_of_uchar_ptrs(arr1, arr2, 2) == 0);
31
+
32
+ // Test case 4: Empty arrays are equal
33
+ assert(equal_array_of_uchar_ptrs(NULL, NULL, 0) == 1);
34
+
35
+ // Test case 5: Single-element arrays are equal
36
+ const unsigned char *arr4[] = {"foo"};
37
+ const unsigned char *arr5[] = {"foo"};
38
+ assert(equal_array_of_uchar_ptrs(arr4, arr5, 1) == 1);
39
+
40
+ // Test case 6: Single-element arrays are not equal
41
+ const unsigned char *arr6[] = {"foo"};
42
+ const unsigned char *arr7[] = {"bar"};
43
+ assert(equal_array_of_uchar_ptrs(arr6, arr7, 1) == 0);
44
+
45
+ return 0;
46
+ }
@@ -0,0 +1,60 @@
1
+ #include "../foundationallib.h"
2
+
3
+ #define CTEST_MAIN
4
+ #define CTEST_SEGFAULT
5
+
6
+ #include <assert.h>
7
+ #include <stddef.h>
8
+
9
+ int equal_array_of_uchars(const unsigned char *array, const unsigned char *array2, size_t size)
10
+ {
11
+ for (size_t i = 0; i < size; i++)
12
+ {
13
+ if (array[i] != array2[i])
14
+ {
15
+ return 0;
16
+ }
17
+ }
18
+ return 1;
19
+ }
20
+
21
+ int main()
22
+ {
23
+ // Test case 1: Arrays are equal
24
+ unsigned char arr1[] = {1, 2, 3};
25
+ unsigned char arr2[] = {1, 2, 3};
26
+ size_t size1 = 3;
27
+ assert(equal_array_of_uchars(arr1, arr2, size1) == 1);
28
+
29
+ // Test case 2: Arrays are not equal
30
+ unsigned char arr3[] = {1, 2, 3};
31
+ unsigned char arr4[] = {1, 2, 4};
32
+ size_t size2 = 3;
33
+ assert(equal_array_of_uchars(arr3, arr4, size2) == 0);
34
+
35
+ // Test case 3: Arrays are of different sizes
36
+ unsigned char arr5[] = {1, 2, 3};
37
+ unsigned char arr6[] = {1, 2, 3, 4};
38
+ size_t size3 = 3;
39
+ assert(equal_array_of_uchars(arr5, arr6, size3) == 0);
40
+
41
+ // Test case 4: Empty arrays
42
+ unsigned char arr7[] = {};
43
+ unsigned char arr8[] = {};
44
+ size_t size4 = 0;
45
+ assert(equal_array_of_uchars(arr7, arr8, size4) == 1);
46
+
47
+ // Test case 5: Large arrays
48
+ unsigned char arr9[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
49
+ unsigned char arr10[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
50
+ size_t size5 = 10;
51
+ assert(equal_array_of_uchars(arr9, arr10, size5) == 1);
52
+
53
+ // Test case 6: Large arrays with different elements
54
+ unsigned char arr11[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
55
+ unsigned char arr12[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11};
56
+ size_t size6 = 10;
57
+ assert(equal_array_of_uchars(arr11, arr12, size6) == 0);
58
+
59
+ return 0;
60
+ }
@@ -0,0 +1,37 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+ #include <stdio.h>
4
+ int main()
5
+ {
6
+ // Test case 1: Empty arrays
7
+ const unsigned int *empty_array1[] = {};
8
+ const unsigned int *empty_array2[] = {};
9
+ assert(equal_array_of_uint_ptrs(empty_array1, empty_array2, 0) == 1);
10
+
11
+ // Test case 2: Arrays with one element
12
+ const unsigned int value1 = 42;
13
+ const unsigned int value2 = 42;
14
+ const unsigned int *array1[] = {&value1};
15
+ const unsigned int *array2[] = {&value2};
16
+ assert(equal_array_of_uint_ptrs(array1, array2, 1) == 1);
17
+
18
+ // Test case 3: Arrays with multiple elements
19
+ const unsigned int val1 = 10, val2 = 20, val3 = 30;
20
+ const unsigned int *arr1[] = {&val1, &val2, &val3};
21
+ const unsigned int *arr2[] = {&val1, &val2, &val3};
22
+ assert(equal_array_of_uint_ptrs(arr1, arr2, 3) == 1);
23
+
24
+ // Test case 4: Arrays with different elements
25
+ const unsigned int v1 = 100, v2 = 200;
26
+ const unsigned int *a1[] = {&v1};
27
+ const unsigned int *a2[] = {&v2};
28
+ assert(equal_array_of_uint_ptrs(a1, a2, 1) == 0);
29
+
30
+ // Test case 5: Arrays with different number of elements
31
+ assert(equal_array_of_uint_ptrs(arr1, arr2, 2) == 0);
32
+
33
+ // All tests passed
34
+ printf("All tests passed successfully!\n");
35
+
36
+ return 0;
37
+ }
@@ -0,0 +1,36 @@
1
+ #include "../foundationallib.h"
2
+
3
+ #include <assert.h>
4
+ #include <stdio.h>
5
+
6
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_uints(const unsigned int *array, const unsigned int *array2, size_t size)
7
+ {
8
+ for (size_t i = 0; i < size; i++)
9
+ {
10
+ if (array[i] != array2[i])
11
+ {
12
+ return 0;
13
+ }
14
+ }
15
+ return 1;
16
+ }
17
+
18
+ int main()
19
+ {
20
+ // Test cases
21
+ unsigned int arr1[] = {1, 2, 3, 4, 5};
22
+ unsigned int arr2[] = {1, 2, 3, 4, 5};
23
+ unsigned int arr3[] = {1, 2, 3, 4, 6};
24
+
25
+ // Test case 1: Equal arrays
26
+ assert(equal_array_of_uints(arr1, arr2, 5) == 1);
27
+
28
+ // Test case 2: Non-equal arrays
29
+ assert(equal_array_of_uints(arr1, arr3, 5) == 0);
30
+
31
+ // Test case 3: Empty arrays
32
+ assert(equal_array_of_uints(NULL, NULL, 0) == 1);
33
+
34
+ printf("All test cases passed successfully.\n");
35
+ return 0;
36
+ }
@@ -0,0 +1,56 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+ #include <stdio.h>
4
+
5
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_ulong_long_ptrs(const unsigned long long **array, const unsigned long long **array2, size_t size)
6
+ {
7
+ for (size_t i = 0; i < size; i++)
8
+ {
9
+ if (*array[i] != *array2[i])
10
+ {
11
+ return 0;
12
+ }
13
+ }
14
+ return 1;
15
+ }
16
+
17
+ int main()
18
+ {
19
+ // Test case 1: Identical arrays
20
+ const unsigned long long arr1[] = {1, 2, 3};
21
+ const unsigned long long arr2[] = {1, 2, 3};
22
+
23
+ const unsigned long long *ptr1[] = {arr1, arr1, arr1};
24
+ const unsigned long long *ptr2[] = {arr2, arr2, arr2};
25
+
26
+ assert(equal_array_of_ulong_long_ptrs(ptr1, ptr2, 3) == 1);
27
+
28
+ // Test case 2: Different arrays
29
+ const unsigned long long arr3[] = {4, 5, 6};
30
+ const unsigned long long *ptr3[] = {arr1, arr1, arr3};
31
+
32
+ assert(equal_array_of_ulong_long_ptrs(ptr1, ptr3, 3) == 0);
33
+
34
+ // Test case 3: Empty arrays
35
+ const unsigned long long *ptr4[] = {NULL, NULL, NULL};
36
+ const unsigned long long *ptr5[] = {NULL, NULL, NULL};
37
+
38
+ assert(equal_array_of_ulong_long_ptrs(ptr4, ptr5, 3) == 1);
39
+
40
+ // Test case 4: Arrays with NULL values
41
+ const unsigned long long arr4[] = {1, 2, 3};
42
+ const unsigned long long *ptr6[] = {arr4, NULL, arr4};
43
+ const unsigned long long *ptr7[] = {arr4, NULL, arr4};
44
+
45
+ assert(equal_array_of_ulong_long_ptrs(ptr6, ptr7, 3) == 0);
46
+
47
+ // Test case 5: Arrays with different sizes
48
+ const unsigned long long *ptr8[] = {arr1, arr1};
49
+ const unsigned long long *ptr9[] = {arr2, arr2, arr2};
50
+
51
+ assert(equal_array_of_ulong_long_ptrs(ptr8, ptr9, 2) == 0);
52
+
53
+ printf("All tests passed!\n");
54
+
55
+ return 0;
56
+ }
@@ -0,0 +1,46 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+ #include <stdio.h>
4
+
5
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_ulong_longs(const unsigned long long *array, const unsigned long long *array2, size_t size)
6
+ {
7
+ for (size_t i = 0; i < size; i++)
8
+ {
9
+ if (array[i] != array2[i])
10
+ {
11
+ return 0;
12
+ }
13
+ }
14
+ return 1;
15
+ }
16
+
17
+ int main()
18
+ {
19
+ // Test case 1: Arrays are equal
20
+ unsigned long long arr1[] = {1, 2, 3, 4, 5};
21
+ unsigned long long arr2[] = {1, 2, 3, 4, 5};
22
+ size_t size = sizeof(arr1) / sizeof(arr1[0]);
23
+ assert(equal_array_of_ulong_longs(arr1, arr2, size) == 1);
24
+
25
+ // Test case 2: Arrays are not equal
26
+ unsigned long long arr3[] = {1, 2, 3, 4, 5};
27
+ unsigned long long arr4[] = {1, 2, 3, 5, 5};
28
+ size = sizeof(arr3) / sizeof(arr3[0]);
29
+ assert(equal_array_of_ulong_longs(arr3, arr4, size) == 0);
30
+
31
+ // Test case 3: Arrays are empty
32
+ unsigned long long arr5[] = {};
33
+ unsigned long long arr6[] = {};
34
+ size = sizeof(arr5) / sizeof(arr5[0]);
35
+ assert(equal_array_of_ulong_longs(arr5, arr6, size) == 1);
36
+
37
+ // Test case 4: Arrays are of different sizes
38
+ unsigned long long arr7[] = {1, 2, 3, 4, 5};
39
+ unsigned long long arr8[] = {1, 2, 3, 4};
40
+ size_t size1 = sizeof(arr7) / sizeof(arr7[0]);
41
+ size_t size2 = sizeof(arr8) / sizeof(arr8[0]);
42
+ assert(equal_array_of_ulong_longs(arr7, arr8, size1) == 0);
43
+
44
+ printf("All test cases passed!\n");
45
+ return 0;
46
+ }
@@ -0,0 +1,38 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+ #include <stdio.h>
4
+
5
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_ulong_ptrs(const unsigned long **array, const unsigned long **array2, size_t size)
6
+ {
7
+ for (size_t i = 0; i < size; i++)
8
+ {
9
+ if (*array[i] != *array2[i])
10
+ {
11
+ return 0;
12
+ }
13
+ }
14
+ return 1;
15
+ }
16
+
17
+ void test_equal_array_of_ulong_ptrs()
18
+ {
19
+ const unsigned long arr1[] = {1, 2, 3, 4, 5};
20
+ const unsigned long arr2[] = {1, 2, 3, 4, 5};
21
+ const unsigned long arr3[] = {1, 2, 3, 4, 10};
22
+ const unsigned long arr4[] = {1, 2, 3, 4};
23
+ const unsigned long *ptr1 = arr1;
24
+ const unsigned long *ptr2 = arr2;
25
+ const unsigned long *ptr3 = arr3;
26
+ const unsigned long *ptr4 = arr4;
27
+
28
+ assert(equal_array_of_ulong_ptrs(&ptr1, &ptr2, 5) == 1);
29
+ assert(equal_array_of_ulong_ptrs(&ptr1, &ptr3, 5) == 0);
30
+ assert(equal_array_of_ulong_ptrs(&ptr1, &ptr4, 4) == 1);
31
+ }
32
+
33
+ int main()
34
+ {
35
+ test_equal_array_of_ulong_ptrs();
36
+ printf("All tests passed!\n");
37
+ return 0;
38
+ }
@@ -0,0 +1,37 @@
1
+ #include "../foundationallib.h"
2
+
3
+ #include <assert.h>
4
+ #include <stdio.h>
5
+
6
+ FOUNDATIONAL_LIB_FUNC int equal_array_of_ulongs(const unsigned long *array, const unsigned long *array2, size_t size)
7
+ {
8
+ for (size_t i = 0; i < size; i++)
9
+ {
10
+ if (array[i] != array2[i])
11
+ {
12
+ return 0;
13
+ }
14
+ }
15
+ return 1;
16
+ }
17
+
18
+ int main()
19
+ {
20
+ // Test cases
21
+ unsigned long arr1[] = {1, 2, 3, 4, 5};
22
+ unsigned long arr2[] = {1, 2, 3, 4, 5};
23
+ unsigned long arr3[] = {1, 2, 3, 4, 6};
24
+ unsigned long arr4[] = {1, 2, 3, 4};
25
+ unsigned long arr5[] = {1, 2, 3, 4, 5, 6};
26
+ unsigned long arr6[] = {0, 0, 0, 0, 0};
27
+
28
+ // Test cases using assert.h
29
+ assert(equal_array_of_ulongs(arr1, arr2, 5) == 1); // Identical arrays
30
+ assert(equal_array_of_ulongs(arr1, arr3, 5) == 0); // Arrays with one different element
31
+ assert(equal_array_of_ulongs(arr1, arr4, 4) == 1); // Arrays with different size
32
+ assert(equal_array_of_ulongs(arr1, arr5, 6) == 0); // Arrays with different size
33
+ assert(equal_array_of_ulongs(arr1, arr6, 5) == 0); // Arrays with all elements as 0
34
+
35
+ printf("All tests passed!\n");
36
+ return 0;
37
+ }
@@ -0,0 +1,30 @@
1
+ #include "../foundationallib.h"
2
+ #include <assert.h>
3
+
4
+ int main()
5
+ {
6
+ // Test case 1: Arrays are equal
7
+ const unsigned short arr1[] = {1, 2, 3, 4};
8
+ const unsigned short arr2[] = {1, 2, 3, 4};
9
+ const unsigned short *ptr1[] = {arr1, arr1 + 1, arr1 + 2, arr1 + 3};
10
+ const unsigned short *ptr2[] = {arr2, arr2 + 1, arr2 + 2, arr2 + 3};
11
+ assert(equal_array_of_ushort_ptrs(ptr1, ptr2, 4) == 1);
12
+
13
+ // Test case 2: Arrays are not equal
14
+ const unsigned short arr3[] = {1, 2, 3, 4};
15
+ const unsigned short arr4[] = {4, 3, 2, 1};
16
+ const unsigned short *ptr3[] = {arr3, arr3 + 1, arr3 + 2, arr3 + 3};
17
+ const unsigned short *ptr4[] = {arr4, arr4 + 1, arr4 + 2, arr4 + 3};
18
+ assert(equal_array_of_ushort_ptrs(ptr3, ptr4, 4) == 0);
19
+
20
+ // Test case 3: Arrays of different sizes
21
+ const unsigned short arr5[] = {1, 2, 3};
22
+ const unsigned short arr6[] = {1, 2, 3, 4};
23
+ const unsigned short *ptr5[] = {arr5, arr5 + 1, arr5 + 2};
24
+ const unsigned short *ptr6[] = {arr6, arr6 + 1, arr6 + 2, arr6 + 3};
25
+ assert(equal_array_of_ushort_ptrs(ptr5, ptr6, 3) == 0);
26
+
27
+ // Add more test cases for corner cases here...
28
+
29
+ return 0;
30
+ }