ceedling 0.29.1 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1267) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +15 -16
  3. data/Gemfile.lock +1 -1
  4. data/README.md +108 -107
  5. data/Rakefile +11 -11
  6. data/assets/ceedling +3 -3
  7. data/assets/ceedling.cmd +0 -0
  8. data/assets/default_gitignore +5 -5
  9. data/assets/example_file.c +5 -5
  10. data/assets/example_file.h +6 -6
  11. data/assets/project_as_gem.yml +101 -97
  12. data/assets/project_with_guts.yml +102 -98
  13. data/assets/project_with_guts_gcov.yml +102 -98
  14. data/assets/project_with_guts_gcov_abortonuncovered.yml +93 -0
  15. data/assets/test_example_file.c +13 -13
  16. data/assets/test_example_file_boom.c +13 -13
  17. data/assets/test_example_file_success.c +14 -14
  18. data/assets/test_example_file_verbose.c +12 -12
  19. data/assets/uncovered_example_file.c +5 -0
  20. data/bin/ceedling +351 -339
  21. data/ceedling.gemspec +52 -36
  22. data/config/test_environment.rb +11 -11
  23. data/docs/Ceedling Basic Porting.pdf +0 -0
  24. data/docs/Ceedling Managing Release Code.pdf +0 -0
  25. data/docs/Ceedling Powerful Plugins.pdf +0 -0
  26. data/docs/Ceedling Working with IDEs.pdf +0 -0
  27. data/docs/CeedlingPacket.md +2213 -2134
  28. data/docs/CeedlingUpgrade.md +83 -83
  29. data/docs/ThrowTheSwitchCodingStandard.md +207 -207
  30. data/examples/blinky/project.yml +99 -99
  31. data/examples/blinky/rakefile.rb +31 -31
  32. data/examples/blinky/src/BlinkTask.c +21 -21
  33. data/examples/blinky/src/BlinkTask.h +6 -6
  34. data/examples/blinky/src/Configure.c +36 -36
  35. data/examples/blinky/src/Configure.h +6 -6
  36. data/examples/blinky/src/main.c +51 -51
  37. data/examples/blinky/src/main.h +9 -9
  38. data/examples/blinky/test/support/stub_interrupt.h +347 -347
  39. data/examples/blinky/test/support/stub_io.h +421 -421
  40. data/examples/blinky/test/support/stub_iom328p.h +883 -883
  41. data/examples/blinky/test/support/stub_sfr_defs.h +269 -269
  42. data/examples/blinky/test/test_BlinkTask.c +42 -42
  43. data/examples/blinky/test/test_Configure.c +29 -29
  44. data/examples/blinky/test/test_main.c +60 -60
  45. data/examples/temp_sensor/project.yml +66 -76
  46. data/examples/temp_sensor/rakefile.rb +6 -6
  47. data/examples/temp_sensor/src/AdcConductor.c +42 -42
  48. data/examples/temp_sensor/src/AdcConductor.h +13 -13
  49. data/examples/temp_sensor/src/AdcHardware.c +27 -27
  50. data/examples/temp_sensor/src/AdcHardware.h +11 -11
  51. data/examples/temp_sensor/src/AdcHardwareConfigurator.c +18 -18
  52. data/examples/temp_sensor/src/AdcHardwareConfigurator.h +10 -10
  53. data/examples/temp_sensor/src/AdcModel.c +33 -33
  54. data/examples/temp_sensor/src/AdcModel.h +13 -13
  55. data/examples/temp_sensor/src/AdcTemperatureSensor.c +51 -51
  56. data/examples/temp_sensor/src/AdcTemperatureSensor.h +10 -10
  57. data/examples/temp_sensor/src/Executor.c +25 -25
  58. data/examples/temp_sensor/src/Executor.h +9 -9
  59. data/examples/temp_sensor/src/IntrinsicsWrapper.c +18 -18
  60. data/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -7
  61. data/examples/temp_sensor/src/Main.c +46 -46
  62. data/examples/temp_sensor/src/Main.h +7 -7
  63. data/examples/temp_sensor/src/Model.c +10 -10
  64. data/examples/temp_sensor/src/Model.h +8 -8
  65. data/examples/temp_sensor/src/ModelConfig.h +7 -7
  66. data/examples/temp_sensor/src/TaskScheduler.c +72 -72
  67. data/examples/temp_sensor/src/TaskScheduler.h +11 -11
  68. data/examples/temp_sensor/src/TemperatureCalculator.c +27 -27
  69. data/examples/temp_sensor/src/TemperatureCalculator.h +8 -8
  70. data/examples/temp_sensor/src/TemperatureFilter.c +38 -38
  71. data/examples/temp_sensor/src/TemperatureFilter.h +10 -10
  72. data/examples/temp_sensor/src/TimerConductor.c +15 -15
  73. data/examples/temp_sensor/src/TimerConductor.h +9 -9
  74. data/examples/temp_sensor/src/TimerConfigurator.c +51 -51
  75. data/examples/temp_sensor/src/TimerConfigurator.h +15 -15
  76. data/examples/temp_sensor/src/TimerHardware.c +15 -15
  77. data/examples/temp_sensor/src/TimerHardware.h +8 -8
  78. data/examples/temp_sensor/src/TimerInterruptConfigurator.c +55 -55
  79. data/examples/temp_sensor/src/TimerInterruptConfigurator.h +13 -13
  80. data/examples/temp_sensor/src/TimerInterruptHandler.c +25 -25
  81. data/examples/temp_sensor/src/TimerInterruptHandler.h +10 -10
  82. data/examples/temp_sensor/src/TimerModel.c +9 -9
  83. data/examples/temp_sensor/src/TimerModel.h +8 -8
  84. data/examples/temp_sensor/src/Types.h +90 -90
  85. data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +18 -18
  86. data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +8 -8
  87. data/examples/temp_sensor/src/UsartConductor.c +21 -21
  88. data/examples/temp_sensor/src/UsartConductor.h +7 -7
  89. data/examples/temp_sensor/src/UsartConfigurator.c +39 -39
  90. data/examples/temp_sensor/src/UsartConfigurator.h +13 -13
  91. data/examples/temp_sensor/src/UsartHardware.c +22 -22
  92. data/examples/temp_sensor/src/UsartHardware.h +9 -9
  93. data/examples/temp_sensor/src/UsartModel.c +34 -34
  94. data/examples/temp_sensor/src/UsartModel.h +10 -10
  95. data/examples/temp_sensor/src/UsartPutChar.c +16 -16
  96. data/examples/temp_sensor/src/UsartPutChar.h +8 -8
  97. data/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -7
  98. data/examples/temp_sensor/src/UsartTransmitBufferStatus.h +8 -8
  99. data/examples/temp_sensor/test/TestAdcConductor.c +121 -121
  100. data/examples/temp_sensor/test/TestAdcHardware.c +44 -44
  101. data/examples/temp_sensor/test/TestAdcModel.c +33 -33
  102. data/examples/temp_sensor/test/TestExecutor.c +36 -36
  103. data/examples/temp_sensor/test/TestMain.c +24 -24
  104. data/examples/temp_sensor/test/TestModel.c +20 -20
  105. data/examples/temp_sensor/test/TestTaskScheduler.c +104 -104
  106. data/examples/temp_sensor/test/TestTemperatureCalculator.c +36 -36
  107. data/examples/temp_sensor/test/TestTemperatureFilter.c +79 -79
  108. data/examples/temp_sensor/test/TestTimerConductor.c +32 -32
  109. data/examples/temp_sensor/test/TestTimerHardware.c +26 -26
  110. data/examples/temp_sensor/test/TestTimerModel.c +18 -18
  111. data/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +21 -21
  112. data/examples/temp_sensor/test/TestUsartConductor.c +40 -40
  113. data/examples/temp_sensor/test/TestUsartHardware.c +36 -36
  114. data/examples/temp_sensor/test/TestUsartModel.c +40 -40
  115. data/examples/temp_sensor/test/support/UnityHelper.c +12 -12
  116. data/examples/temp_sensor/test/support/UnityHelper.h +12 -12
  117. data/lib/ceedling.rb +99 -99
  118. data/lib/ceedling/build_invoker_utils.rb +39 -39
  119. data/lib/ceedling/cacheinator.rb +47 -47
  120. data/lib/ceedling/cacheinator_helper.rb +35 -31
  121. data/lib/ceedling/cmock_builder.rb +15 -15
  122. data/lib/ceedling/configurator.rb +372 -363
  123. data/lib/ceedling/configurator_builder.rb +463 -458
  124. data/lib/ceedling/configurator_plugins.rb +111 -111
  125. data/lib/ceedling/configurator_setup.rb +127 -127
  126. data/lib/ceedling/configurator_validator.rb +193 -193
  127. data/lib/ceedling/constants.rb +99 -97
  128. data/lib/ceedling/defaults.rb +447 -418
  129. data/lib/ceedling/dependinator.rb +97 -98
  130. data/lib/ceedling/erb_wrapper.rb +8 -8
  131. data/lib/ceedling/file_finder.rb +149 -149
  132. data/lib/ceedling/file_finder_helper.rb +56 -54
  133. data/lib/ceedling/file_path_utils.rb +202 -200
  134. data/lib/ceedling/file_system_utils.rb +69 -69
  135. data/lib/ceedling/file_system_wrapper.rb +9 -9
  136. data/lib/ceedling/file_wrapper.rb +83 -83
  137. data/lib/ceedling/flaginator.rb +74 -74
  138. data/lib/ceedling/generator.rb +186 -183
  139. data/lib/ceedling/generator_helper.rb +40 -40
  140. data/lib/ceedling/generator_test_results.rb +100 -100
  141. data/lib/ceedling/generator_test_results_sanity_checker.rb +65 -65
  142. data/lib/ceedling/generator_test_runner.rb +58 -56
  143. data/lib/ceedling/loginator.rb +31 -31
  144. data/lib/ceedling/makefile.rb +46 -46
  145. data/lib/ceedling/objects.yml +311 -310
  146. data/lib/ceedling/par_map.rb +19 -19
  147. data/lib/ceedling/plugin.rb +80 -80
  148. data/lib/ceedling/plugin_builder.rb +52 -52
  149. data/lib/ceedling/plugin_manager.rb +107 -107
  150. data/lib/ceedling/plugin_manager_helper.rb +19 -19
  151. data/lib/ceedling/plugin_reportinator.rb +76 -76
  152. data/lib/ceedling/plugin_reportinator_helper.rb +51 -51
  153. data/lib/ceedling/preprocessinator.rb +47 -42
  154. data/lib/ceedling/preprocessinator_extractor.rb +30 -30
  155. data/lib/ceedling/preprocessinator_file_handler.rb +21 -21
  156. data/lib/ceedling/preprocessinator_helper.rb +50 -46
  157. data/lib/ceedling/preprocessinator_includes_handler.rb +181 -181
  158. data/lib/ceedling/project_config_manager.rb +52 -46
  159. data/lib/ceedling/project_file_loader.rb +99 -99
  160. data/lib/ceedling/rake_utils.rb +17 -17
  161. data/lib/ceedling/rake_wrapper.rb +33 -33
  162. data/lib/ceedling/rakefile.rb +86 -86
  163. data/lib/ceedling/release_invoker.rb +98 -73
  164. data/lib/ceedling/release_invoker_helper.rb +19 -19
  165. data/lib/ceedling/reportinator.rb +26 -26
  166. data/lib/ceedling/rules_cmock.rake +9 -9
  167. data/lib/ceedling/rules_preprocess.rake +26 -26
  168. data/lib/ceedling/rules_release.rake +99 -86
  169. data/lib/ceedling/rules_release_deep_dependencies.rake +15 -15
  170. data/lib/ceedling/rules_tests.rake +73 -74
  171. data/lib/ceedling/rules_tests_deep_dependencies.rake +15 -15
  172. data/lib/ceedling/setupinator.rb +53 -53
  173. data/lib/ceedling/stream_wrapper.rb +28 -28
  174. data/lib/ceedling/streaminator.rb +40 -40
  175. data/lib/ceedling/streaminator_helper.rb +15 -15
  176. data/lib/ceedling/system_utils.rb +37 -37
  177. data/lib/ceedling/system_wrapper.rb +80 -80
  178. data/lib/ceedling/target_loader.rb +38 -38
  179. data/lib/ceedling/task_invoker.rb +122 -117
  180. data/lib/ceedling/tasks_base.rake +116 -105
  181. data/lib/ceedling/tasks_filesystem.rake +113 -112
  182. data/lib/ceedling/tasks_release.rake +30 -30
  183. data/lib/ceedling/tasks_release_deep_dependencies.rake +9 -9
  184. data/lib/ceedling/tasks_tests.rake +60 -60
  185. data/lib/ceedling/tasks_tests_deep_dependencies.rake +9 -9
  186. data/lib/ceedling/tasks_vendor.rake +35 -35
  187. data/lib/ceedling/test_includes_extractor.rb +111 -85
  188. data/lib/ceedling/test_invoker.rb +164 -188
  189. data/lib/ceedling/test_invoker_helper.rb +32 -32
  190. data/lib/ceedling/tool_executor.rb +229 -229
  191. data/lib/ceedling/tool_executor_helper.rb +164 -164
  192. data/lib/ceedling/verbosinator.rb +10 -10
  193. data/lib/ceedling/version.rb +50 -50
  194. data/lib/ceedling/yaml_wrapper.rb +17 -17
  195. data/license.txt +31 -31
  196. data/plugins/beep/README.md +22 -22
  197. data/plugins/beep/lib/beep.rb +40 -40
  198. data/plugins/bullseye/README.md +76 -0
  199. data/plugins/bullseye/assets/template.erb +15 -15
  200. data/plugins/bullseye/bullseye.rake +173 -169
  201. data/plugins/bullseye/config/defaults.yml +57 -57
  202. data/plugins/bullseye/lib/bullseye.rb +194 -194
  203. data/plugins/colour_report/README.md +20 -0
  204. data/plugins/colour_report/lib/colour_report.rb +16 -16
  205. data/plugins/command_hooks/README.md +53 -53
  206. data/plugins/command_hooks/lib/command_hooks.rb +92 -92
  207. data/plugins/compile_commands_json/README.md +29 -0
  208. data/plugins/compile_commands_json/lib/compile_commands_json.rb +35 -0
  209. data/plugins/dependencies/README.md +254 -0
  210. data/plugins/dependencies/config/defaults.yml +5 -0
  211. data/plugins/dependencies/dependencies.rake +144 -0
  212. data/plugins/dependencies/lib/dependencies.rb +231 -0
  213. data/plugins/fake_function_framework/README.md +250 -250
  214. data/plugins/fake_function_framework/Rakefile +18 -18
  215. data/plugins/fake_function_framework/examples/fff_example/project.yml +71 -71
  216. data/plugins/fake_function_framework/examples/fff_example/rakefile.rb +7 -7
  217. data/plugins/fake_function_framework/examples/fff_example/src/bar.c +1 -1
  218. data/plugins/fake_function_framework/examples/fff_example/src/bar.h +14 -14
  219. data/plugins/fake_function_framework/examples/fff_example/src/custom_types.h +6 -6
  220. data/plugins/fake_function_framework/examples/fff_example/src/display.c +6 -6
  221. data/plugins/fake_function_framework/examples/fff_example/src/display.h +16 -16
  222. data/plugins/fake_function_framework/examples/fff_example/src/event_processor.c +93 -93
  223. data/plugins/fake_function_framework/examples/fff_example/src/event_processor.h +11 -11
  224. data/plugins/fake_function_framework/examples/fff_example/src/foo.c +16 -16
  225. data/plugins/fake_function_framework/examples/fff_example/src/foo.h +8 -8
  226. data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.c +1 -1
  227. data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.h +6 -6
  228. data/plugins/fake_function_framework/examples/fff_example/test/test_event_processor.c +155 -155
  229. data/plugins/fake_function_framework/examples/fff_example/test/test_foo.c +47 -47
  230. data/plugins/fake_function_framework/lib/fake_function_framework.rb +87 -87
  231. data/plugins/fake_function_framework/lib/fff_mock_generator.rb +163 -163
  232. data/plugins/fake_function_framework/spec/fff_mock_header_generator_spec.rb +304 -304
  233. data/plugins/fake_function_framework/spec/fff_mock_source_generator_spec.rb +148 -148
  234. data/plugins/fake_function_framework/spec/header_generator.rb +50 -50
  235. data/plugins/fake_function_framework/spec/spec_helper.rb +96 -96
  236. data/plugins/fake_function_framework/src/fff_unity_helper.h +32 -32
  237. data/plugins/gcov/README.md +412 -101
  238. data/plugins/gcov/assets/template.erb +15 -15
  239. data/plugins/gcov/config/defaults.yml +51 -73
  240. data/plugins/gcov/gcov.rake +209 -220
  241. data/plugins/gcov/lib/gcov.rb +133 -113
  242. data/plugins/gcov/lib/gcov_constants.rb +48 -19
  243. data/plugins/gcov/lib/gcovr_reportinator.rb +331 -0
  244. data/plugins/gcov/lib/reportgenerator_reportinator.rb +153 -0
  245. data/plugins/gcov/lib/reportinator_helper.rb +15 -0
  246. data/plugins/json_tests_report/README.md +36 -0
  247. data/plugins/json_tests_report/lib/json_tests_report.rb +83 -0
  248. data/plugins/junit_tests_report/README.md +36 -36
  249. data/plugins/junit_tests_report/lib/junit_tests_report.rb +134 -130
  250. data/plugins/module_generator/README.md +105 -0
  251. data/plugins/module_generator/config/module_generator.yml +3 -3
  252. data/plugins/module_generator/lib/module_generator.rb +79 -70
  253. data/plugins/module_generator/module_generator.rake +62 -47
  254. data/plugins/raw_output_report/README.md +19 -0
  255. data/plugins/raw_output_report/lib/raw_output_report.rb +41 -41
  256. data/plugins/stdout_gtestlike_tests_report/README.md +19 -0
  257. data/plugins/stdout_gtestlike_tests_report/assets/template.erb +84 -84
  258. data/plugins/stdout_gtestlike_tests_report/assets/template.erb copy +59 -59
  259. data/plugins/stdout_gtestlike_tests_report/config/stdout_gtestlike_tests_report.yml +4 -4
  260. data/plugins/stdout_gtestlike_tests_report/lib/stdout_gtestlike_tests_report.rb +43 -43
  261. data/plugins/stdout_ide_tests_report/README.md +18 -0
  262. data/plugins/stdout_ide_tests_report/config/stdout_ide_tests_report.yml +4 -4
  263. data/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb +44 -44
  264. data/plugins/stdout_pretty_tests_report/README.md +20 -0
  265. data/plugins/stdout_pretty_tests_report/assets/template.erb +59 -59
  266. data/plugins/stdout_pretty_tests_report/config/stdout_pretty_tests_report.yml +4 -4
  267. data/plugins/stdout_pretty_tests_report/lib/stdout_pretty_tests_report.rb +47 -47
  268. data/plugins/subprojects/README.md +63 -63
  269. data/plugins/subprojects/config/defaults.yml +33 -33
  270. data/plugins/subprojects/lib/subprojects.rb +92 -92
  271. data/plugins/subprojects/subprojects.rake +78 -78
  272. data/plugins/teamcity_tests_report/README.md +18 -0
  273. data/plugins/teamcity_tests_report/config/teamcity_tests_report.yml +4 -4
  274. data/plugins/teamcity_tests_report/lib/teamcity_tests_report.rb +57 -57
  275. data/plugins/warnings_report/README.md +19 -0
  276. data/plugins/warnings_report/lib/warnings_report.rb +69 -69
  277. data/plugins/xml_tests_report/README.md +36 -36
  278. data/plugins/xml_tests_report/lib/xml_tests_report.rb +110 -110
  279. data/spec/build_invoker_utils_spec.rb +54 -54
  280. data/spec/ceedling_spec.rb +154 -154
  281. data/spec/configurator_builder_spec.rb +6 -6
  282. data/spec/configurator_helper_spec.rb +4 -4
  283. data/spec/configurator_spec.rb +9 -9
  284. data/spec/file_finder_helper_spec.rb +53 -53
  285. data/spec/gcov/gcov_deployment_spec.rb +72 -70
  286. data/spec/gcov/gcov_test_cases_spec.rb +128 -91
  287. data/spec/generator_test_results_sanity_checker_spec.rb +88 -88
  288. data/spec/generator_test_results_spec.rb +107 -107
  289. data/spec/par_map_spec.rb +57 -57
  290. data/spec/preprocessinator_extractor_spec.rb +45 -45
  291. data/spec/preprocessinator_includes_handler_spec.rb +202 -202
  292. data/spec/reportinator_spec.rb +19 -19
  293. data/spec/spec_helper.rb +27 -27
  294. data/spec/spec_system_helper.rb +616 -615
  295. data/spec/support/test_example.fail +24 -24
  296. data/spec/support/test_example.pass +24 -24
  297. data/spec/support/test_example_empty.pass +14 -14
  298. data/spec/support/test_example_ignore.pass +24 -24
  299. data/spec/support/test_example_mangled.pass +21 -21
  300. data/spec/support/test_example_with_time.pass +24 -24
  301. data/spec/system/deployment_spec.rb +225 -225
  302. data/spec/system_utils_spec.rb +56 -56
  303. data/spec/target_loader_spec.rb +30 -30
  304. data/spec/tool_executor_helper_spec.rb +310 -310
  305. data/spec/uncatagorized_specs_spec.rb +8 -8
  306. data/vendor/behaviors/Manifest.txt +9 -9
  307. data/vendor/behaviors/Rakefile +19 -19
  308. data/vendor/behaviors/lib/behaviors.rb +76 -76
  309. data/vendor/behaviors/lib/behaviors/reporttask.rb +158 -158
  310. data/vendor/behaviors/test/behaviors_tasks_test.rb +73 -73
  311. data/vendor/behaviors/test/behaviors_test.rb +50 -50
  312. data/vendor/behaviors/test/tasks_test/Rakefile +19 -19
  313. data/vendor/behaviors/test/tasks_test/lib/user.rb +2 -2
  314. data/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -17
  315. data/vendor/c_exception/Gemfile +4 -4
  316. data/vendor/c_exception/Gemfile.lock +12 -12
  317. data/vendor/c_exception/README.md +249 -162
  318. data/vendor/c_exception/docs/CException.md +332 -292
  319. data/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +207 -207
  320. data/vendor/c_exception/lib/CException.c +46 -46
  321. data/vendor/c_exception/lib/CException.h +115 -115
  322. data/vendor/c_exception/lib/meson.build +11 -0
  323. data/vendor/c_exception/meson.build +48 -0
  324. data/vendor/c_exception/project.yml +37 -0
  325. data/vendor/c_exception/test/TestException.c +391 -391
  326. data/vendor/{cmock/vendor/c_exception/test → c_exception/test/support}/CExceptionConfig.h +46 -46
  327. data/vendor/c_exception/vendor/unity/README.md +220 -220
  328. data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +118 -118
  329. data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -39
  330. data/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -36
  331. data/vendor/c_exception/vendor/unity/auto/generate_module.rb +308 -308
  332. data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +437 -437
  333. data/vendor/c_exception/vendor/unity/auto/parse_output.rb +220 -220
  334. data/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +252 -252
  335. data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +25 -25
  336. data/vendor/c_exception/vendor/unity/auto/type_sanitizer.rb +6 -6
  337. data/vendor/c_exception/vendor/unity/auto/unity_test_summary.py +139 -139
  338. data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +136 -136
  339. data/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +146 -146
  340. data/vendor/c_exception/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +207 -207
  341. data/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.md +716 -716
  342. data/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.md +398 -398
  343. data/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.md +191 -191
  344. data/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.md +242 -242
  345. data/vendor/c_exception/vendor/unity/docs/license.txt +21 -21
  346. data/vendor/c_exception/vendor/unity/examples/example_1/makefile +71 -71
  347. data/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +4 -4
  348. data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +24 -24
  349. data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +3 -3
  350. data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -11
  351. data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -2
  352. data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -62
  353. data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -31
  354. data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -53
  355. data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -57
  356. data/vendor/c_exception/vendor/unity/examples/example_2/makefile +70 -70
  357. data/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +4 -4
  358. data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +24 -24
  359. data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +3 -3
  360. data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -11
  361. data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -2
  362. data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -64
  363. data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -33
  364. data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +8 -8
  365. data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +10 -10
  366. data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -12
  367. data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -10
  368. data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -12
  369. data/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +43 -43
  370. data/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +249 -249
  371. data/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +13 -13
  372. data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +24 -24
  373. data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +3 -3
  374. data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -11
  375. data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -2
  376. data/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +46 -46
  377. data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -62
  378. data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -31
  379. data/vendor/c_exception/vendor/unity/examples/unity_config.h +237 -237
  380. data/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +26 -26
  381. data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +48 -48
  382. data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +178 -178
  383. data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +8 -8
  384. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +432 -432
  385. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +83 -83
  386. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +51 -51
  387. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -47
  388. data/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +74 -74
  389. data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +22 -22
  390. data/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -39
  391. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +543 -543
  392. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -57
  393. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +57 -57
  394. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -17
  395. data/vendor/c_exception/vendor/unity/release/build.info +2 -2
  396. data/vendor/c_exception/vendor/unity/release/version.info +2 -2
  397. data/vendor/c_exception/vendor/unity/src/unity.c +1517 -1517
  398. data/vendor/c_exception/vendor/unity/src/unity.h +339 -339
  399. data/vendor/c_exception/vendor/unity/src/unity_internals.h +784 -784
  400. data/vendor/c_exception/vendor/unity/test/Makefile +63 -63
  401. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +61 -61
  402. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +57 -57
  403. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +55 -55
  404. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.h +15 -15
  405. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -80
  406. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +76 -76
  407. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -75
  408. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -13
  409. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -89
  410. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -89
  411. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +77 -77
  412. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -89
  413. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -89
  414. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -90
  415. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +67 -67
  416. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +70 -70
  417. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +58 -58
  418. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +67 -67
  419. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +70 -70
  420. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +71 -71
  421. data/vendor/c_exception/vendor/unity/test/rakefile +125 -125
  422. data/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +260 -260
  423. data/vendor/c_exception/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -158
  424. data/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +78 -78
  425. data/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +78 -78
  426. data/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +49 -49
  427. data/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +50 -50
  428. data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +47 -47
  429. data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +59 -59
  430. data/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +47 -47
  431. data/vendor/c_exception/vendor/unity/test/targets/hitech_picc18.yml +101 -101
  432. data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +90 -90
  433. data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +80 -80
  434. data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +80 -80
  435. data/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -94
  436. data/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +84 -84
  437. data/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +95 -95
  438. data/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +86 -86
  439. data/vendor/c_exception/vendor/unity/test/testdata/CException.h +11 -11
  440. data/vendor/c_exception/vendor/unity/test/testdata/Defs.h +8 -8
  441. data/vendor/c_exception/vendor/unity/test/testdata/cmock.h +14 -14
  442. data/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +13 -13
  443. data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +183 -183
  444. data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +67 -67
  445. data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -192
  446. data/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +1252 -1252
  447. data/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +110 -110
  448. data/vendor/c_exception/vendor/unity/test/tests/testunity.c +4993 -4993
  449. data/vendor/cmock/Gemfile +8 -9
  450. data/vendor/cmock/LICENSE.txt +18 -18
  451. data/vendor/cmock/README.md +34 -34
  452. data/vendor/cmock/config/production_environment.rb +12 -14
  453. data/vendor/cmock/config/test_environment.rb +16 -16
  454. data/vendor/cmock/docs/CMock_Summary.md +806 -696
  455. data/vendor/cmock/docs/ThrowTheSwitchCodingStandard.md +207 -207
  456. data/vendor/cmock/examples/make_example/Makefile +30 -30
  457. data/vendor/cmock/examples/make_example/src/foo.c +5 -5
  458. data/vendor/cmock/examples/make_example/src/foo.h +5 -5
  459. data/vendor/cmock/examples/make_example/src/main.c +15 -15
  460. data/vendor/cmock/examples/make_example/test/test_foo.c +17 -17
  461. data/vendor/cmock/examples/make_example/test/test_main.c +15 -15
  462. data/vendor/cmock/examples/temp_sensor/gcc.yml +44 -44
  463. data/vendor/cmock/examples/temp_sensor/iar_v4.yml +92 -92
  464. data/vendor/cmock/examples/temp_sensor/iar_v5.yml +81 -81
  465. data/vendor/cmock/examples/temp_sensor/rakefile.rb +42 -42
  466. data/vendor/cmock/examples/temp_sensor/rakefile_helper.rb +268 -272
  467. data/vendor/cmock/examples/temp_sensor/src/AT91SAM7X256.h +2556 -2556
  468. data/vendor/cmock/examples/temp_sensor/src/AdcConductor.c +42 -42
  469. data/vendor/cmock/examples/temp_sensor/src/AdcConductor.h +11 -11
  470. data/vendor/cmock/examples/temp_sensor/src/AdcHardware.c +27 -27
  471. data/vendor/cmock/examples/temp_sensor/src/AdcHardware.h +9 -9
  472. data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.c +18 -18
  473. data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.h +10 -10
  474. data/vendor/cmock/examples/temp_sensor/src/AdcModel.c +33 -33
  475. data/vendor/cmock/examples/temp_sensor/src/AdcModel.h +13 -13
  476. data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.c +51 -51
  477. data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.h +10 -10
  478. data/vendor/cmock/examples/temp_sensor/src/Executor.c +25 -25
  479. data/vendor/cmock/examples/temp_sensor/src/Executor.h +9 -9
  480. data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.c +18 -18
  481. data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -7
  482. data/vendor/cmock/examples/temp_sensor/src/Main.c +46 -46
  483. data/vendor/cmock/examples/temp_sensor/src/Main.h +7 -7
  484. data/vendor/cmock/examples/temp_sensor/src/Model.c +10 -10
  485. data/vendor/cmock/examples/temp_sensor/src/Model.h +8 -8
  486. data/vendor/cmock/examples/temp_sensor/src/ModelConfig.h +7 -7
  487. data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.c +72 -72
  488. data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.h +11 -11
  489. data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.c +27 -27
  490. data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.h +6 -6
  491. data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.c +39 -39
  492. data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.h +10 -10
  493. data/vendor/cmock/examples/temp_sensor/src/TimerConductor.c +15 -15
  494. data/vendor/cmock/examples/temp_sensor/src/TimerConductor.h +9 -9
  495. data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.c +51 -51
  496. data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.h +15 -15
  497. data/vendor/cmock/examples/temp_sensor/src/TimerHardware.c +15 -15
  498. data/vendor/cmock/examples/temp_sensor/src/TimerHardware.h +8 -8
  499. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.c +55 -55
  500. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.h +13 -13
  501. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.c +25 -25
  502. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.h +10 -10
  503. data/vendor/cmock/examples/temp_sensor/src/TimerModel.c +9 -9
  504. data/vendor/cmock/examples/temp_sensor/src/TimerModel.h +8 -8
  505. data/vendor/cmock/examples/temp_sensor/src/Types.h +103 -103
  506. data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +18 -18
  507. data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +6 -6
  508. data/vendor/cmock/examples/temp_sensor/src/UsartConductor.c +21 -21
  509. data/vendor/cmock/examples/temp_sensor/src/UsartConductor.h +7 -7
  510. data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.c +39 -39
  511. data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.h +13 -13
  512. data/vendor/cmock/examples/temp_sensor/src/UsartHardware.c +22 -22
  513. data/vendor/cmock/examples/temp_sensor/src/UsartHardware.h +9 -9
  514. data/vendor/cmock/examples/temp_sensor/src/UsartModel.c +34 -34
  515. data/vendor/cmock/examples/temp_sensor/src/UsartModel.h +10 -10
  516. data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.c +16 -16
  517. data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.h +8 -8
  518. data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -7
  519. data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.h +8 -8
  520. data/vendor/cmock/examples/temp_sensor/test/TestAdcConductor.c +121 -121
  521. data/vendor/cmock/examples/temp_sensor/test/TestAdcHardware.c +44 -44
  522. data/vendor/cmock/examples/temp_sensor/test/TestAdcHardwareConfigurator.c +43 -43
  523. data/vendor/cmock/examples/temp_sensor/test/TestAdcModel.c +33 -33
  524. data/vendor/cmock/examples/temp_sensor/test/TestAdcTemperatureSensor.c +47 -47
  525. data/vendor/cmock/examples/temp_sensor/test/TestExecutor.c +36 -36
  526. data/vendor/cmock/examples/temp_sensor/test/TestMain.c +24 -24
  527. data/vendor/cmock/examples/temp_sensor/test/TestModel.c +20 -20
  528. data/vendor/cmock/examples/temp_sensor/test/TestTaskScheduler.c +104 -104
  529. data/vendor/cmock/examples/temp_sensor/test/TestTemperatureCalculator.c +33 -33
  530. data/vendor/cmock/examples/temp_sensor/test/TestTemperatureFilter.c +69 -69
  531. data/vendor/cmock/examples/temp_sensor/test/TestTimerConductor.c +32 -32
  532. data/vendor/cmock/examples/temp_sensor/test/TestTimerConfigurator.c +112 -112
  533. data/vendor/cmock/examples/temp_sensor/test/TestTimerHardware.c +26 -26
  534. data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptConfigurator.c +78 -78
  535. data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptHandler.c +66 -66
  536. data/vendor/cmock/examples/temp_sensor/test/TestTimerModel.c +18 -18
  537. data/vendor/cmock/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +21 -21
  538. data/vendor/cmock/examples/temp_sensor/test/TestUsartConductor.c +40 -40
  539. data/vendor/cmock/examples/temp_sensor/test/TestUsartConfigurator.c +77 -77
  540. data/vendor/cmock/examples/temp_sensor/test/TestUsartHardware.c +37 -37
  541. data/vendor/cmock/examples/temp_sensor/test/TestUsartModel.c +40 -40
  542. data/vendor/cmock/examples/temp_sensor/test/TestUsartPutChar.c +43 -43
  543. data/vendor/cmock/examples/temp_sensor/test/TestUsartTransmitBufferStatus.c +22 -22
  544. data/vendor/cmock/lib/cmock.rb +104 -86
  545. data/vendor/cmock/lib/cmock_config.rb +173 -163
  546. data/vendor/cmock/lib/cmock_file_writer.rb +48 -44
  547. data/vendor/cmock/lib/cmock_generator.rb +333 -275
  548. data/vendor/cmock/lib/cmock_generator_plugin_array.rb +63 -63
  549. data/vendor/cmock/lib/cmock_generator_plugin_callback.rb +88 -88
  550. data/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +49 -51
  551. data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +100 -103
  552. data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +50 -53
  553. data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +88 -75
  554. data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +42 -42
  555. data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +79 -79
  556. data/vendor/cmock/lib/cmock_generator_utils.rb +247 -253
  557. data/vendor/cmock/lib/cmock_header_parser.rb +595 -474
  558. data/vendor/cmock/lib/cmock_plugin_manager.rb +50 -55
  559. data/vendor/cmock/lib/cmock_unityhelper_parser.rb +77 -75
  560. data/vendor/cmock/meson.build +53 -72
  561. data/vendor/cmock/scripts/create_makefile.rb +203 -202
  562. data/vendor/cmock/scripts/create_mock.rb +8 -8
  563. data/vendor/cmock/scripts/create_runner.rb +18 -20
  564. data/vendor/cmock/scripts/test_summary.rb +18 -19
  565. data/vendor/cmock/src/cmock.c +216 -216
  566. data/vendor/cmock/src/cmock.h +41 -40
  567. data/vendor/cmock/src/cmock_internals.h +91 -91
  568. data/vendor/cmock/src/meson.build +12 -17
  569. data/vendor/cmock/test/c/TestCMockC.c +333 -333
  570. data/vendor/cmock/test/c/TestCMockC.yml +14 -14
  571. data/vendor/cmock/test/c/TestCMockCDynamic.c +186 -186
  572. data/vendor/cmock/test/c/TestCMockCDynamic.yml +12 -12
  573. data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +36 -36
  574. data/vendor/cmock/test/c/TestCMockC_Runner.c +41 -41
  575. data/vendor/cmock/test/iar/iar_v4/Resource/at91SAM7X256_FLASH.xcl +185 -185
  576. data/vendor/cmock/test/iar/iar_v4/Resource/at91SAM7X256_RAM.xcl +185 -185
  577. data/vendor/cmock/test/iar/iar_v4/Resource/ioat91sam7x256.ddf +2259 -2259
  578. data/vendor/cmock/test/iar/iar_v4/cmock_demo.dep +3691 -3691
  579. data/vendor/cmock/test/iar/iar_v4/cmock_demo.ewp +2581 -2581
  580. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X-EK.h +61 -61
  581. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.inc +2314 -2314
  582. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.rdf +4704 -4704
  583. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.tcl +3407 -3407
  584. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +2268 -2268
  585. data/vendor/cmock/test/iar/iar_v4/incIAR/ioat91sam7x256.h +4380 -4380
  586. data/vendor/cmock/test/iar/iar_v4/incIAR/lib_AT91SAM7X256.h +4211 -4211
  587. data/vendor/cmock/test/iar/iar_v4/settings/cmock_demo.cspy.bat +32 -32
  588. data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup.s79 +265 -265
  589. data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup_SAM7.c +98 -98
  590. data/vendor/cmock/test/iar/iar_v5/Resource/at91SAM7X256_FLASH.icf +43 -43
  591. data/vendor/cmock/test/iar/iar_v5/Resource/at91SAM7X256_RAM.icf +42 -42
  592. data/vendor/cmock/test/iar/iar_v5/cmock_demo.dep +4204 -4204
  593. data/vendor/cmock/test/iar/iar_v5/cmock_demo.ewp +2426 -2426
  594. data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X-EK.h +61 -61
  595. data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +2268 -2268
  596. data/vendor/cmock/test/iar/iar_v5/incIAR/lib_AT91SAM7X256.h +4211 -4211
  597. data/vendor/cmock/test/iar/iar_v5/incIAR/project.h +30 -30
  598. data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.cspy.bat +33 -33
  599. data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X_FLASH_Debug.jlink +12 -12
  600. data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo.cspy.bat +33 -33
  601. data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_Binary.jlink +12 -12
  602. data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_FLASH_Debug.jlink +12 -12
  603. data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_RAM_Debug.jlink +12 -12
  604. data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup.s +299 -299
  605. data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup_SAM7.c +98 -98
  606. data/vendor/cmock/test/rakefile +147 -106
  607. data/vendor/cmock/test/rakefile_helper.rb +403 -382
  608. data/vendor/cmock/test/system/systest_generator.rb +205 -193
  609. data/vendor/cmock/test/system/test_compilation/callingconv.h +11 -11
  610. data/vendor/cmock/test/system/test_compilation/config.yml +10 -10
  611. data/vendor/cmock/test/system/test_compilation/const.h +37 -37
  612. data/vendor/cmock/test/system/test_compilation/inline.h +23 -23
  613. data/vendor/cmock/test/system/test_compilation/osek.h +275 -275
  614. data/vendor/cmock/test/system/test_compilation/parsing.h +89 -89
  615. data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +375 -375
  616. data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +460 -460
  617. data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +446 -446
  618. data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +124 -124
  619. data/vendor/cmock/test/system/test_interactions/const_primitives_handling.yml +87 -87
  620. data/vendor/cmock/test/system/test_interactions/doesnt_leave_details_behind.yml +308 -308
  621. data/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +247 -247
  622. data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +108 -108
  623. data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +173 -173
  624. data/vendor/cmock/test/system/test_interactions/expect_and_throw.yml +170 -170
  625. data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +238 -238
  626. data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +210 -210
  627. data/vendor/cmock/test/system/test_interactions/function_pointer_handling.yml +83 -82
  628. data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +329 -329
  629. data/vendor/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml +37 -37
  630. data/vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml +52 -52
  631. data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_1.yml +91 -91
  632. data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +59 -59
  633. data/vendor/cmock/test/system/test_interactions/out_of_memory.yml +65 -65
  634. data/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +242 -242
  635. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +235 -235
  636. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +231 -231
  637. data/vendor/cmock/test/system/test_interactions/skeleton.yml +55 -0
  638. data/vendor/cmock/test/system/test_interactions/skeleton_update.yml +76 -0
  639. data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return.yml +277 -277
  640. data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return_with_plugins.yml +280 -280
  641. data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +221 -221
  642. data/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +77 -77
  643. data/vendor/cmock/test/system/test_interactions/unity_ignores.yml +139 -139
  644. data/vendor/cmock/test/system/test_interactions/unity_void_pointer_compare.yml +91 -91
  645. data/vendor/cmock/test/targets/clang_strict.yml +90 -90
  646. data/vendor/cmock/test/targets/gcc.yml +58 -58
  647. data/vendor/cmock/test/targets/gcc_64.yml +58 -58
  648. data/vendor/cmock/test/targets/gcc_tiny.yml +80 -80
  649. data/vendor/cmock/test/targets/iar_arm_v4.yml +110 -110
  650. data/vendor/cmock/test/targets/iar_arm_v5.yml +95 -95
  651. data/vendor/cmock/test/test_helper.rb +44 -44
  652. data/vendor/cmock/test/unit/cmock_config_test.rb +126 -123
  653. data/vendor/cmock/test/unit/cmock_config_test.yml +7 -6
  654. data/vendor/cmock/test/unit/cmock_file_writer_test.rb +27 -27
  655. data/vendor/cmock/test/unit/cmock_generator_main_test.rb +686 -551
  656. data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +141 -141
  657. data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +281 -281
  658. data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +96 -96
  659. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_a_test.rb +185 -183
  660. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +67 -67
  661. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_b_test.rb +201 -200
  662. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +116 -116
  663. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +119 -105
  664. data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +136 -136
  665. data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +398 -415
  666. data/vendor/cmock/test/unit/cmock_header_parser_test.rb +2717 -2000
  667. data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +100 -100
  668. data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +223 -223
  669. data/vendor/cmock/vendor/behaviors/Manifest.txt +9 -9
  670. data/vendor/cmock/vendor/behaviors/Rakefile +19 -19
  671. data/vendor/cmock/vendor/behaviors/lib/behaviors.rb +76 -76
  672. data/vendor/cmock/vendor/behaviors/lib/behaviors/reporttask.rb +158 -158
  673. data/vendor/cmock/vendor/behaviors/test/behaviors_tasks_test.rb +73 -73
  674. data/vendor/cmock/vendor/behaviors/test/behaviors_test.rb +50 -50
  675. data/vendor/cmock/vendor/behaviors/test/tasks_test/Rakefile +19 -19
  676. data/vendor/cmock/vendor/behaviors/test/tasks_test/lib/user.rb +2 -2
  677. data/vendor/cmock/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -17
  678. data/vendor/cmock/vendor/c_exception/Gemfile +4 -4
  679. data/vendor/cmock/vendor/c_exception/Gemfile.lock +12 -12
  680. data/vendor/cmock/vendor/c_exception/README.md +249 -162
  681. data/vendor/cmock/vendor/c_exception/docs/CException.md +332 -292
  682. data/vendor/cmock/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +207 -207
  683. data/vendor/cmock/vendor/c_exception/lib/CException.c +46 -46
  684. data/vendor/cmock/vendor/c_exception/lib/CException.h +115 -115
  685. data/vendor/cmock/vendor/c_exception/lib/meson.build +11 -0
  686. data/vendor/cmock/vendor/c_exception/meson.build +48 -0
  687. data/vendor/cmock/vendor/c_exception/project.yml +37 -0
  688. data/vendor/cmock/vendor/c_exception/test/TestException.c +391 -391
  689. data/vendor/{c_exception/test → cmock/vendor/c_exception/test/support}/CExceptionConfig.h +46 -46
  690. data/vendor/cmock/vendor/c_exception/vendor/unity/README.md +220 -0
  691. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +118 -0
  692. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -0
  693. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -0
  694. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +308 -0
  695. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +437 -0
  696. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/parse_output.rb +220 -0
  697. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +252 -0
  698. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +25 -0
  699. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/type_sanitizer.rb +6 -0
  700. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.py +139 -0
  701. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +136 -0
  702. data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +146 -0
  703. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +207 -0
  704. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  705. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.md +716 -0
  706. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.md +398 -0
  707. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.md +191 -0
  708. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.md +242 -0
  709. data/vendor/cmock/vendor/c_exception/vendor/unity/docs/license.txt +21 -0
  710. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/makefile +71 -0
  711. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +5 -0
  712. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +24 -0
  713. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +3 -0
  714. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -0
  715. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -0
  716. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -0
  717. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -0
  718. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
  719. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
  720. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile +70 -0
  721. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +5 -0
  722. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +24 -0
  723. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +3 -0
  724. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -0
  725. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -0
  726. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -0
  727. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -0
  728. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
  729. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
  730. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
  731. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -0
  732. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -0
  733. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +43 -0
  734. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +249 -0
  735. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +13 -0
  736. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +24 -0
  737. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +3 -0
  738. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -0
  739. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -0
  740. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +46 -0
  741. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -0
  742. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -0
  743. data/vendor/cmock/vendor/c_exception/vendor/unity/examples/unity_config.h +237 -0
  744. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
  745. data/vendor/cmock/vendor/{unity → c_exception/vendor/unity}/extras/fixture/rakefile.rb +48 -44
  746. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +178 -0
  747. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +9 -0
  748. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +432 -0
  749. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +83 -0
  750. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +51 -0
  751. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -0
  752. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +74 -0
  753. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +22 -0
  754. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -0
  755. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +543 -0
  756. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -0
  757. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +57 -0
  758. data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
  759. data/vendor/cmock/vendor/c_exception/vendor/unity/release/build.info +2 -0
  760. data/vendor/cmock/vendor/c_exception/vendor/unity/release/version.info +2 -0
  761. data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +1517 -0
  762. data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +339 -0
  763. data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +784 -0
  764. data/vendor/cmock/vendor/c_exception/vendor/unity/test/Makefile +63 -0
  765. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +61 -0
  766. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +57 -0
  767. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +55 -0
  768. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.h +15 -0
  769. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -0
  770. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +76 -0
  771. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -0
  772. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -0
  773. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -0
  774. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -0
  775. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +77 -0
  776. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -0
  777. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -0
  778. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -0
  779. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +67 -0
  780. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +70 -0
  781. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +58 -0
  782. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +67 -0
  783. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +70 -0
  784. data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +71 -0
  785. data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile +125 -0
  786. data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +260 -0
  787. data/vendor/cmock/vendor/c_exception/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -0
  788. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +78 -0
  789. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +78 -0
  790. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +49 -0
  791. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +50 -0
  792. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +47 -0
  793. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +59 -0
  794. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +47 -0
  795. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/hitech_picc18.yml +101 -0
  796. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +90 -0
  797. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +80 -0
  798. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +80 -0
  799. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -0
  800. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +84 -0
  801. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +95 -0
  802. data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +86 -0
  803. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/CException.h +11 -0
  804. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/Defs.h +8 -0
  805. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/cmock.h +14 -0
  806. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +13 -0
  807. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +183 -0
  808. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +67 -0
  809. data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
  810. data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +1252 -0
  811. data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +110 -0
  812. data/vendor/cmock/vendor/{unity → c_exception/vendor/unity}/test/tests/testunity.c +4993 -8168
  813. data/vendor/cmock/vendor/unity/CMakeLists.txt +133 -31
  814. data/vendor/cmock/vendor/unity/LICENSE.txt +21 -21
  815. data/vendor/cmock/vendor/unity/README.md +191 -191
  816. data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +119 -119
  817. data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +39 -39
  818. data/vendor/cmock/vendor/unity/auto/generate_config.yml +36 -36
  819. data/vendor/cmock/vendor/unity/auto/generate_module.rb +312 -309
  820. data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +511 -495
  821. data/vendor/cmock/vendor/unity/auto/parse_output.rb +322 -322
  822. data/vendor/cmock/vendor/unity/auto/run_test.erb +37 -36
  823. data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +251 -251
  824. data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +25 -25
  825. data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +6 -6
  826. data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +139 -139
  827. data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +135 -135
  828. data/vendor/cmock/vendor/unity/auto/unity_to_junit.py +146 -146
  829. data/vendor/cmock/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +206 -206
  830. data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.md +831 -850
  831. data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.md +563 -541
  832. data/vendor/cmock/vendor/unity/docs/UnityGettingStartedGuide.md +251 -251
  833. data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.md +278 -266
  834. data/vendor/cmock/vendor/unity/examples/example_1/makefile +72 -72
  835. data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +4 -4
  836. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +24 -24
  837. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +3 -3
  838. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -11
  839. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -2
  840. data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -62
  841. data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -31
  842. data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -53
  843. data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -57
  844. data/vendor/cmock/vendor/unity/examples/example_2/makefile +71 -71
  845. data/vendor/cmock/vendor/unity/examples/example_2/readme.txt +4 -4
  846. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +24 -24
  847. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +3 -3
  848. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -11
  849. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -2
  850. data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -64
  851. data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -33
  852. data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +8 -8
  853. data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +10 -10
  854. data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -12
  855. data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -10
  856. data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -12
  857. data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +38 -38
  858. data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +250 -250
  859. data/vendor/cmock/vendor/unity/examples/example_3/readme.txt +13 -13
  860. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +24 -24
  861. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +3 -3
  862. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -11
  863. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -2
  864. data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +47 -47
  865. data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -62
  866. data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -31
  867. data/vendor/cmock/vendor/unity/examples/example_4/meson.build +12 -17
  868. data/vendor/cmock/vendor/unity/examples/example_4/readme.txt +14 -14
  869. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.c +24 -24
  870. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.h +3 -3
  871. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.c +11 -11
  872. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.h +2 -2
  873. data/vendor/cmock/vendor/unity/examples/example_4/src/meson.build +16 -21
  874. data/vendor/cmock/vendor/unity/examples/example_4/subprojects/unity.wrap +4 -4
  875. data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode.c +63 -63
  876. data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode2.c +35 -35
  877. data/vendor/cmock/vendor/unity/examples/example_4/test/meson.build +7 -12
  878. data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -53
  879. data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -57
  880. data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/meson.build +13 -16
  881. data/vendor/cmock/vendor/unity/examples/unity_config.h +244 -263
  882. data/vendor/cmock/vendor/unity/extras/eclipse/error_parsers.txt +26 -26
  883. data/vendor/cmock/vendor/unity/extras/fixture/readme.md +29 -17
  884. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +310 -275
  885. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +83 -83
  886. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +50 -50
  887. data/vendor/cmock/vendor/unity/extras/fixture/test/Makefile +72 -72
  888. data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +20 -20
  889. data/vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -39
  890. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +245 -245
  891. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +32 -32
  892. data/vendor/cmock/vendor/unity/extras/memory/readme.md +49 -49
  893. data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.c +202 -202
  894. data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.h +60 -60
  895. data/vendor/cmock/vendor/unity/extras/memory/test/Makefile +78 -78
  896. data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_Test.c +325 -325
  897. data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +49 -49
  898. data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.c +56 -56
  899. data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.h +16 -16
  900. data/vendor/cmock/vendor/unity/meson.build +48 -69
  901. data/vendor/cmock/vendor/unity/src/meson.build +11 -16
  902. data/vendor/cmock/vendor/unity/src/unity.c +2109 -2085
  903. data/vendor/cmock/vendor/unity/src/unity.h +661 -617
  904. data/vendor/cmock/vendor/unity/src/unity_internals.h +1030 -1002
  905. data/vendor/cmock/vendor/unity/test/Makefile +159 -67
  906. data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +61 -61
  907. data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +57 -57
  908. data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.c +55 -55
  909. data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.h +15 -15
  910. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -80
  911. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +76 -76
  912. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -75
  913. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -13
  914. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -89
  915. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -89
  916. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +77 -77
  917. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -89
  918. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -89
  919. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -90
  920. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +67 -67
  921. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +70 -70
  922. data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +58 -58
  923. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +67 -67
  924. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +70 -70
  925. data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +71 -71
  926. data/vendor/cmock/vendor/unity/test/rakefile +163 -124
  927. data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +315 -269
  928. data/vendor/cmock/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -158
  929. data/vendor/cmock/vendor/unity/test/targets/ansi.yml +44 -49
  930. data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +72 -78
  931. data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +71 -78
  932. data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +45 -49
  933. data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +46 -50
  934. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +43 -47
  935. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +55 -59
  936. data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +43 -47
  937. data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +91 -101
  938. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +98 -90
  939. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +92 -80
  940. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +92 -80
  941. data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +90 -94
  942. data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +94 -84
  943. data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +112 -95
  944. data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +99 -86
  945. data/vendor/cmock/vendor/unity/test/testdata/CException.h +11 -11
  946. data/vendor/cmock/vendor/unity/test/testdata/Defs.h +8 -8
  947. data/vendor/cmock/vendor/unity/test/testdata/cmock.h +14 -14
  948. data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +13 -13
  949. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +189 -189
  950. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +70 -70
  951. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +197 -197
  952. data/vendor/cmock/vendor/unity/test/tests/self_assessment_utils.h +144 -0
  953. data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +1260 -1268
  954. data/vendor/cmock/vendor/unity/test/tests/test_unity_arrays.c +2874 -0
  955. data/vendor/cmock/vendor/unity/test/tests/test_unity_core.c +371 -0
  956. data/vendor/cmock/vendor/unity/test/tests/test_unity_doubles.c +773 -0
  957. data/vendor/cmock/vendor/unity/test/tests/test_unity_floats.c +884 -0
  958. data/vendor/cmock/vendor/unity/test/tests/test_unity_integers.c +2847 -0
  959. data/vendor/cmock/vendor/unity/test/tests/test_unity_integers_64.c +773 -0
  960. data/vendor/cmock/vendor/unity/test/tests/test_unity_memory.c +81 -0
  961. data/vendor/{unity/test/tests/testparameterized.c → cmock/vendor/unity/test/tests/test_unity_parameterized.c} +171 -171
  962. data/vendor/cmock/vendor/unity/test/tests/test_unity_strings.c +329 -0
  963. data/vendor/cmock/vendor/unity/unityConfig.cmake +1 -0
  964. data/vendor/deep_merge/MIT-LICENSE +20 -20
  965. data/vendor/deep_merge/README +94 -94
  966. data/vendor/deep_merge/Rakefile +28 -28
  967. data/vendor/deep_merge/lib/deep_merge.rb +211 -211
  968. data/vendor/deep_merge/test/test_deep_merge.rb +553 -553
  969. data/vendor/diy/History.txt +28 -28
  970. data/vendor/diy/README.rdoc +233 -233
  971. data/vendor/diy/Rakefile +33 -33
  972. data/vendor/diy/TODO.txt +9 -9
  973. data/vendor/diy/diy.gemspec +131 -131
  974. data/vendor/diy/lib/diy.rb +403 -403
  975. data/vendor/diy/lib/diy/factory.rb +36 -36
  976. data/vendor/diy/sample_code/car.rb +7 -7
  977. data/vendor/diy/sample_code/chassis.rb +5 -5
  978. data/vendor/diy/sample_code/diy_example.rb +26 -26
  979. data/vendor/diy/sample_code/engine.rb +5 -5
  980. data/vendor/diy/sample_code/objects.yml +10 -10
  981. data/vendor/diy/test/constructor.rb +119 -119
  982. data/vendor/diy/test/diy_test.rb +608 -608
  983. data/vendor/diy/test/factory_test.rb +79 -79
  984. data/vendor/diy/test/files/broken_construction.yml +7 -7
  985. data/vendor/diy/test/files/cat/cat.rb +3 -3
  986. data/vendor/diy/test/files/cat/extra_conflict.yml +5 -5
  987. data/vendor/diy/test/files/cat/heritage.rb +2 -2
  988. data/vendor/diy/test/files/cat/needs_input.yml +3 -3
  989. data/vendor/diy/test/files/cat/the_cat_lineage.rb +1 -1
  990. data/vendor/diy/test/files/dog/dog_model.rb +3 -3
  991. data/vendor/diy/test/files/dog/dog_presenter.rb +3 -3
  992. data/vendor/diy/test/files/dog/dog_view.rb +2 -2
  993. data/vendor/diy/test/files/dog/file_resolver.rb +2 -2
  994. data/vendor/diy/test/files/dog/other_thing.rb +2 -2
  995. data/vendor/diy/test/files/dog/simple.yml +11 -11
  996. data/vendor/diy/test/files/donkey/foo.rb +8 -8
  997. data/vendor/diy/test/files/donkey/foo/bar/qux.rb +7 -7
  998. data/vendor/diy/test/files/factory/beef.rb +5 -5
  999. data/vendor/diy/test/files/factory/dog.rb +6 -6
  1000. data/vendor/diy/test/files/factory/factory.yml +19 -19
  1001. data/vendor/diy/test/files/factory/farm/llama.rb +7 -7
  1002. data/vendor/diy/test/files/factory/farm/pork.rb +7 -7
  1003. data/vendor/diy/test/files/factory/kitten.rb +13 -13
  1004. data/vendor/diy/test/files/fud/objects.yml +13 -13
  1005. data/vendor/diy/test/files/fud/toy.rb +14 -14
  1006. data/vendor/diy/test/files/functions/attached_things_builder.rb +1 -1
  1007. data/vendor/diy/test/files/functions/invalid_method.yml +4 -4
  1008. data/vendor/diy/test/files/functions/method_extractor.rb +2 -2
  1009. data/vendor/diy/test/files/functions/nonsingleton_objects.yml +5 -5
  1010. data/vendor/diy/test/files/functions/objects.yml +21 -21
  1011. data/vendor/diy/test/files/functions/thing.rb +2 -2
  1012. data/vendor/diy/test/files/functions/thing_builder.rb +24 -24
  1013. data/vendor/diy/test/files/functions/things_builder.rb +2 -2
  1014. data/vendor/diy/test/files/gnu/objects.yml +14 -14
  1015. data/vendor/diy/test/files/gnu/thinger.rb +7 -7
  1016. data/vendor/diy/test/files/goat/base.rb +8 -8
  1017. data/vendor/diy/test/files/goat/can.rb +6 -6
  1018. data/vendor/diy/test/files/goat/goat.rb +6 -6
  1019. data/vendor/diy/test/files/goat/objects.yml +12 -12
  1020. data/vendor/diy/test/files/goat/paper.rb +6 -6
  1021. data/vendor/diy/test/files/goat/plane.rb +7 -7
  1022. data/vendor/diy/test/files/goat/shirt.rb +6 -6
  1023. data/vendor/diy/test/files/goat/wings.rb +8 -8
  1024. data/vendor/diy/test/files/horse/holder_thing.rb +3 -3
  1025. data/vendor/diy/test/files/horse/objects.yml +7 -7
  1026. data/vendor/diy/test/files/namespace/animal/bird.rb +5 -5
  1027. data/vendor/diy/test/files/namespace/animal/cat.rb +5 -5
  1028. data/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +8 -8
  1029. data/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +7 -7
  1030. data/vendor/diy/test/files/namespace/bad_module_specified.yml +8 -8
  1031. data/vendor/diy/test/files/namespace/class_name_combine.yml +8 -8
  1032. data/vendor/diy/test/files/namespace/no_module_specified.yml +8 -8
  1033. data/vendor/diy/test/files/namespace/objects.yml +21 -21
  1034. data/vendor/diy/test/files/namespace/road.rb +2 -2
  1035. data/vendor/diy/test/files/namespace/sky.rb +2 -2
  1036. data/vendor/diy/test/files/namespace/subcontext.yml +22 -22
  1037. data/vendor/diy/test/files/non_singleton/air.rb +2 -2
  1038. data/vendor/diy/test/files/non_singleton/fat_cat.rb +3 -3
  1039. data/vendor/diy/test/files/non_singleton/objects.yml +19 -19
  1040. data/vendor/diy/test/files/non_singleton/pig.rb +3 -3
  1041. data/vendor/diy/test/files/non_singleton/thread_spinner.rb +3 -3
  1042. data/vendor/diy/test/files/non_singleton/tick.rb +3 -3
  1043. data/vendor/diy/test/files/non_singleton/yard.rb +2 -2
  1044. data/vendor/diy/test/files/yak/core_model.rb +3 -3
  1045. data/vendor/diy/test/files/yak/core_presenter.rb +3 -3
  1046. data/vendor/diy/test/files/yak/core_view.rb +1 -1
  1047. data/vendor/diy/test/files/yak/data_source.rb +1 -1
  1048. data/vendor/diy/test/files/yak/fringe_model.rb +3 -3
  1049. data/vendor/diy/test/files/yak/fringe_presenter.rb +3 -3
  1050. data/vendor/diy/test/files/yak/fringe_view.rb +1 -1
  1051. data/vendor/diy/test/files/yak/giant_squid.rb +3 -3
  1052. data/vendor/diy/test/files/yak/krill.rb +2 -2
  1053. data/vendor/diy/test/files/yak/my_objects.yml +21 -21
  1054. data/vendor/diy/test/files/yak/sub_sub_context_test.yml +27 -27
  1055. data/vendor/diy/test/test_helper.rb +55 -55
  1056. data/vendor/hardmock/CHANGES +78 -78
  1057. data/vendor/hardmock/LICENSE +7 -7
  1058. data/vendor/hardmock/README +70 -70
  1059. data/vendor/hardmock/Rakefile +8 -8
  1060. data/vendor/hardmock/config/environment.rb +12 -12
  1061. data/vendor/hardmock/lib/assert_error.rb +23 -23
  1062. data/vendor/hardmock/lib/extend_test_unit.rb +14 -14
  1063. data/vendor/hardmock/lib/hardmock.rb +86 -86
  1064. data/vendor/hardmock/lib/hardmock/errors.rb +22 -22
  1065. data/vendor/hardmock/lib/hardmock/expectation.rb +229 -229
  1066. data/vendor/hardmock/lib/hardmock/expectation_builder.rb +9 -9
  1067. data/vendor/hardmock/lib/hardmock/expector.rb +26 -26
  1068. data/vendor/hardmock/lib/hardmock/method_cleanout.rb +33 -33
  1069. data/vendor/hardmock/lib/hardmock/mock.rb +180 -180
  1070. data/vendor/hardmock/lib/hardmock/mock_control.rb +53 -53
  1071. data/vendor/hardmock/lib/hardmock/stubbing.rb +210 -210
  1072. data/vendor/hardmock/lib/hardmock/trapper.rb +31 -31
  1073. data/vendor/hardmock/lib/hardmock/utils.rb +9 -9
  1074. data/vendor/hardmock/lib/test_unit_before_after.rb +169 -169
  1075. data/vendor/hardmock/rake_tasks/rdoc.rake +19 -19
  1076. data/vendor/hardmock/rake_tasks/rdoc_options.rb +4 -4
  1077. data/vendor/hardmock/rake_tasks/test.rake +22 -22
  1078. data/vendor/hardmock/test/functional/assert_error_test.rb +52 -52
  1079. data/vendor/hardmock/test/functional/auto_verify_test.rb +178 -178
  1080. data/vendor/hardmock/test/functional/direct_mock_usage_test.rb +396 -396
  1081. data/vendor/hardmock/test/functional/hardmock_test.rb +434 -434
  1082. data/vendor/hardmock/test/functional/stubbing_test.rb +479 -479
  1083. data/vendor/hardmock/test/test_helper.rb +43 -43
  1084. data/vendor/hardmock/test/unit/expectation_builder_test.rb +19 -19
  1085. data/vendor/hardmock/test/unit/expectation_test.rb +372 -372
  1086. data/vendor/hardmock/test/unit/expector_test.rb +57 -57
  1087. data/vendor/hardmock/test/unit/method_cleanout_test.rb +36 -36
  1088. data/vendor/hardmock/test/unit/mock_control_test.rb +175 -175
  1089. data/vendor/hardmock/test/unit/mock_test.rb +279 -279
  1090. data/vendor/hardmock/test/unit/test_unit_before_after_test.rb +452 -452
  1091. data/vendor/hardmock/test/unit/trapper_test.rb +62 -62
  1092. data/vendor/hardmock/test/unit/verify_error_test.rb +40 -40
  1093. data/vendor/unity/CMakeLists.txt +133 -31
  1094. data/vendor/unity/LICENSE.txt +21 -21
  1095. data/vendor/unity/README.md +191 -191
  1096. data/vendor/unity/auto/colour_prompt.rb +119 -119
  1097. data/vendor/unity/auto/colour_reporter.rb +39 -39
  1098. data/vendor/unity/auto/generate_config.yml +36 -36
  1099. data/vendor/unity/auto/generate_module.rb +312 -309
  1100. data/vendor/unity/auto/generate_test_runner.rb +511 -495
  1101. data/vendor/unity/auto/parse_output.rb +322 -322
  1102. data/vendor/unity/auto/run_test.erb +37 -36
  1103. data/vendor/unity/auto/stylize_as_junit.rb +251 -251
  1104. data/vendor/unity/auto/test_file_filter.rb +25 -25
  1105. data/vendor/unity/auto/type_sanitizer.rb +6 -6
  1106. data/vendor/unity/auto/unity_test_summary.py +139 -139
  1107. data/vendor/unity/auto/unity_test_summary.rb +135 -135
  1108. data/vendor/unity/auto/unity_to_junit.py +146 -146
  1109. data/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +206 -206
  1110. data/vendor/unity/docs/UnityAssertionsReference.md +831 -850
  1111. data/vendor/unity/docs/UnityConfigurationGuide.md +563 -541
  1112. data/vendor/unity/docs/UnityGettingStartedGuide.md +251 -251
  1113. data/vendor/unity/docs/UnityHelperScriptsGuide.md +278 -266
  1114. data/vendor/unity/examples/example_1/makefile +72 -72
  1115. data/vendor/unity/examples/example_1/readme.txt +4 -4
  1116. data/vendor/unity/examples/example_1/src/ProductionCode.c +24 -24
  1117. data/vendor/unity/examples/example_1/src/ProductionCode.h +3 -3
  1118. data/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -11
  1119. data/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -2
  1120. data/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -62
  1121. data/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -31
  1122. data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -53
  1123. data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -57
  1124. data/vendor/unity/examples/example_2/makefile +71 -71
  1125. data/vendor/unity/examples/example_2/readme.txt +4 -4
  1126. data/vendor/unity/examples/example_2/src/ProductionCode.c +24 -24
  1127. data/vendor/unity/examples/example_2/src/ProductionCode.h +3 -3
  1128. data/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -11
  1129. data/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -2
  1130. data/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -64
  1131. data/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -33
  1132. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +8 -8
  1133. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +10 -10
  1134. data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -12
  1135. data/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -10
  1136. data/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -12
  1137. data/vendor/unity/examples/example_3/rakefile.rb +38 -38
  1138. data/vendor/unity/examples/example_3/rakefile_helper.rb +250 -250
  1139. data/vendor/unity/examples/example_3/readme.txt +13 -13
  1140. data/vendor/unity/examples/example_3/src/ProductionCode.c +24 -24
  1141. data/vendor/unity/examples/example_3/src/ProductionCode.h +3 -3
  1142. data/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -11
  1143. data/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -2
  1144. data/vendor/unity/examples/example_3/target_gcc_32.yml +47 -47
  1145. data/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -62
  1146. data/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -31
  1147. data/vendor/unity/examples/example_4/meson.build +12 -17
  1148. data/vendor/unity/examples/example_4/readme.txt +14 -14
  1149. data/vendor/unity/examples/example_4/src/ProductionCode.c +24 -24
  1150. data/vendor/unity/examples/example_4/src/ProductionCode.h +3 -3
  1151. data/vendor/unity/examples/example_4/src/ProductionCode2.c +11 -11
  1152. data/vendor/unity/examples/example_4/src/ProductionCode2.h +2 -2
  1153. data/vendor/unity/examples/example_4/src/meson.build +16 -21
  1154. data/vendor/unity/examples/example_4/subprojects/unity.wrap +4 -4
  1155. data/vendor/unity/examples/example_4/test/TestProductionCode.c +63 -63
  1156. data/vendor/unity/examples/example_4/test/TestProductionCode2.c +35 -35
  1157. data/vendor/unity/examples/example_4/test/meson.build +7 -12
  1158. data/vendor/unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -53
  1159. data/vendor/unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -57
  1160. data/vendor/unity/examples/example_4/test/test_runners/meson.build +13 -16
  1161. data/vendor/unity/examples/unity_config.h +244 -263
  1162. data/vendor/unity/extras/eclipse/error_parsers.txt +26 -26
  1163. data/vendor/unity/extras/fixture/readme.md +29 -17
  1164. data/vendor/unity/extras/fixture/src/unity_fixture.c +310 -275
  1165. data/vendor/unity/extras/fixture/src/unity_fixture.h +83 -83
  1166. data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +50 -50
  1167. data/vendor/unity/extras/fixture/test/Makefile +72 -72
  1168. data/vendor/unity/extras/fixture/test/main/AllTests.c +20 -20
  1169. data/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -39
  1170. data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +245 -245
  1171. data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +32 -32
  1172. data/vendor/unity/extras/memory/readme.md +49 -49
  1173. data/vendor/unity/extras/memory/src/unity_memory.c +202 -202
  1174. data/vendor/unity/extras/memory/src/unity_memory.h +60 -60
  1175. data/vendor/unity/extras/memory/test/Makefile +78 -78
  1176. data/vendor/unity/extras/memory/test/unity_memory_Test.c +325 -325
  1177. data/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +49 -49
  1178. data/vendor/unity/extras/memory/test/unity_output_Spy.c +56 -56
  1179. data/vendor/unity/extras/memory/test/unity_output_Spy.h +16 -16
  1180. data/vendor/unity/meson.build +48 -69
  1181. data/vendor/unity/src/meson.build +11 -16
  1182. data/vendor/unity/src/unity.c +2109 -2085
  1183. data/vendor/unity/src/unity.h +661 -617
  1184. data/vendor/unity/src/unity_internals.h +1030 -1002
  1185. data/vendor/unity/test/Makefile +159 -67
  1186. data/vendor/unity/test/expectdata/testsample_cmd.c +61 -61
  1187. data/vendor/unity/test/expectdata/testsample_def.c +57 -57
  1188. data/vendor/unity/test/expectdata/testsample_head1.c +55 -55
  1189. data/vendor/unity/test/expectdata/testsample_head1.h +15 -15
  1190. data/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -80
  1191. data/vendor/unity/test/expectdata/testsample_mock_def.c +76 -76
  1192. data/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -75
  1193. data/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -13
  1194. data/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -89
  1195. data/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -89
  1196. data/vendor/unity/test/expectdata/testsample_mock_param.c +77 -77
  1197. data/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -89
  1198. data/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -89
  1199. data/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -90
  1200. data/vendor/unity/test/expectdata/testsample_new1.c +67 -67
  1201. data/vendor/unity/test/expectdata/testsample_new2.c +70 -70
  1202. data/vendor/unity/test/expectdata/testsample_param.c +58 -58
  1203. data/vendor/unity/test/expectdata/testsample_run1.c +67 -67
  1204. data/vendor/unity/test/expectdata/testsample_run2.c +70 -70
  1205. data/vendor/unity/test/expectdata/testsample_yaml.c +71 -71
  1206. data/vendor/unity/test/rakefile +163 -124
  1207. data/vendor/unity/test/rakefile_helper.rb +315 -269
  1208. data/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -158
  1209. data/vendor/unity/test/targets/ansi.yml +44 -49
  1210. data/vendor/unity/test/targets/clang_file.yml +72 -78
  1211. data/vendor/unity/test/targets/clang_strict.yml +71 -78
  1212. data/vendor/unity/test/targets/gcc_32.yml +45 -49
  1213. data/vendor/unity/test/targets/gcc_64.yml +46 -50
  1214. data/vendor/unity/test/targets/gcc_auto_limits.yml +43 -47
  1215. data/vendor/unity/test/targets/gcc_auto_stdint.yml +55 -59
  1216. data/vendor/unity/test/targets/gcc_manual_math.yml +43 -47
  1217. data/vendor/unity/test/targets/hitech_picc18.yml +91 -101
  1218. data/vendor/unity/test/targets/iar_arm_v4.yml +98 -90
  1219. data/vendor/unity/test/targets/iar_arm_v5.yml +92 -80
  1220. data/vendor/unity/test/targets/iar_arm_v5_3.yml +92 -80
  1221. data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +90 -94
  1222. data/vendor/unity/test/targets/iar_cortexm3_v5.yml +94 -84
  1223. data/vendor/unity/test/targets/iar_msp430.yml +112 -95
  1224. data/vendor/unity/test/targets/iar_sh2a_v6.yml +99 -86
  1225. data/vendor/unity/test/testdata/CException.h +11 -11
  1226. data/vendor/unity/test/testdata/Defs.h +8 -8
  1227. data/vendor/unity/test/testdata/cmock.h +14 -14
  1228. data/vendor/unity/test/testdata/mockMock.h +13 -13
  1229. data/vendor/unity/test/testdata/testRunnerGenerator.c +189 -189
  1230. data/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +70 -70
  1231. data/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +197 -197
  1232. data/vendor/unity/test/tests/self_assessment_utils.h +144 -0
  1233. data/vendor/unity/test/tests/test_generate_test_runner.rb +1260 -1268
  1234. data/vendor/unity/test/tests/test_unity_arrays.c +2874 -0
  1235. data/vendor/unity/test/tests/test_unity_core.c +371 -0
  1236. data/vendor/unity/test/tests/test_unity_doubles.c +773 -0
  1237. data/vendor/unity/test/tests/test_unity_floats.c +884 -0
  1238. data/vendor/unity/test/tests/test_unity_integers.c +2847 -0
  1239. data/vendor/unity/test/tests/test_unity_integers_64.c +773 -0
  1240. data/vendor/unity/test/tests/test_unity_memory.c +81 -0
  1241. data/vendor/{cmock/vendor/unity/test/tests/testparameterized.c → unity/test/tests/test_unity_parameterized.c} +171 -171
  1242. data/vendor/unity/test/tests/test_unity_strings.c +329 -0
  1243. data/vendor/unity/unityConfig.cmake +1 -0
  1244. metadata +225 -62
  1245. data/ceedling.sublime-project +0 -28
  1246. data/ceedling.sublime-workspace +0 -1276
  1247. data/docs/CeedlingPacket.odt +0 -0
  1248. data/docs/CeedlingPacket.pdf +0 -0
  1249. data/plugins/bullseye/readme.txt +0 -0
  1250. data/vendor/c_exception/LICENSE.txt +0 -30
  1251. data/vendor/c_exception/Rakefile +0 -42
  1252. data/vendor/c_exception/makefile +0 -24
  1253. data/vendor/c_exception/test/TestException_Runner.c +0 -67
  1254. data/vendor/cmock/vendor/c_exception/LICENSE.txt +0 -30
  1255. data/vendor/cmock/vendor/c_exception/Rakefile +0 -42
  1256. data/vendor/cmock/vendor/c_exception/makefile +0 -24
  1257. data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +0 -67
  1258. data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +0 -183
  1259. data/vendor/cmock/vendor/unity/extras/memory/rakefile.rb +0 -45
  1260. data/vendor/cmock/vendor/unity/extras/memory/rakefile_helper.rb +0 -187
  1261. data/vendor/cmock/vendor/unity/src/CMakeLists.txt +0 -22
  1262. data/vendor/unity/extras/fixture/rakefile.rb +0 -44
  1263. data/vendor/unity/extras/fixture/rakefile_helper.rb +0 -183
  1264. data/vendor/unity/extras/memory/rakefile.rb +0 -45
  1265. data/vendor/unity/extras/memory/rakefile_helper.rb +0 -187
  1266. data/vendor/unity/src/CMakeLists.txt +0 -22
  1267. data/vendor/unity/test/tests/testunity.c +0 -8168
@@ -0,0 +1,2874 @@
1
+ /* ==========================================
2
+ Unity Project - A Test Framework for C
3
+ Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4
+ [Released under MIT License. Please refer to license.txt for details]
5
+ ========================================== */
6
+
7
+ #include "unity.h"
8
+ #define TEST_INSTANCES
9
+ #include "self_assessment_utils.h"
10
+
11
+ static int SetToOneToFailInTearDown;
12
+ static int SetToOneMeanWeAlreadyCheckedThisGuy;
13
+
14
+ void setUp(void)
15
+ {
16
+ SetToOneToFailInTearDown = 0;
17
+ SetToOneMeanWeAlreadyCheckedThisGuy = 0;
18
+ }
19
+
20
+ void tearDown(void)
21
+ {
22
+ endPutcharSpy(); /* Stop suppressing test output */
23
+ if (SetToOneToFailInTearDown == 1)
24
+ {
25
+ /* These will be skipped internally if already failed/ignored */
26
+ TEST_FAIL_MESSAGE("<= Failed in tearDown");
27
+ TEST_IGNORE_MESSAGE("<= Ignored in tearDown");
28
+ }
29
+ if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
30
+ {
31
+ UnityPrint(": [[[[ Test Should Have Passed But Did Not ]]]]");
32
+ UNITY_OUTPUT_CHAR('\n');
33
+ }
34
+ }
35
+
36
+ void testInt64ArrayWithinDelta(void)
37
+ {
38
+ #ifndef UNITY_SUPPORT_64
39
+ TEST_IGNORE();
40
+ #else
41
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
42
+ UNITY_INT64 actualSmallDelta[] = {12345001, -12344996, 12345005};
43
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
44
+
45
+ TEST_ASSERT_INT64_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
46
+ TEST_ASSERT_INT64_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
47
+ #endif
48
+ }
49
+
50
+ void testInt64ArrayWithinDeltaAndMessage(void)
51
+ {
52
+ #ifndef UNITY_SUPPORT_64
53
+ TEST_IGNORE();
54
+ #else
55
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
56
+ UNITY_INT64 actualSmallDelta[] = {12345001, -12344996, 12345005};
57
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
58
+
59
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
60
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
61
+ #endif
62
+ }
63
+
64
+ void tesUInt64ArrayNotWithinDelta(void)
65
+ {
66
+ #ifndef UNITY_SUPPORT_64
67
+ TEST_IGNORE();
68
+ #else
69
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
70
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
71
+
72
+ EXPECT_ABORT_BEGIN
73
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
74
+ VERIFY_FAILS_END
75
+ #endif
76
+ }
77
+
78
+ void testInt64ArrayNotWithinDeltaAndMessage(void)
79
+ {
80
+ #ifndef UNITY_SUPPORT_64
81
+ TEST_IGNORE();
82
+ #else
83
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
84
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
85
+
86
+ EXPECT_ABORT_BEGIN
87
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
88
+ VERIFY_FAILS_END
89
+ #endif
90
+ }
91
+
92
+ void testInt64ArrayWithinDeltaPointless(void)
93
+ {
94
+ #ifndef UNITY_SUPPORT_64
95
+ TEST_IGNORE();
96
+ #else
97
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
98
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
99
+
100
+ EXPECT_ABORT_BEGIN
101
+ TEST_ASSERT_INT64_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
102
+ VERIFY_FAILS_END
103
+ #endif
104
+ }
105
+
106
+ void testInt64ArrayWithinDeltaPointlessAndMessage(void)
107
+ {
108
+ #ifndef UNITY_SUPPORT_64
109
+ TEST_IGNORE();
110
+ #else
111
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
112
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
113
+
114
+ EXPECT_ABORT_BEGIN
115
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
116
+ VERIFY_FAILS_END
117
+ #endif
118
+ }
119
+
120
+ void testInt64ArrayWithinDeltaExpectedNull(void)
121
+ {
122
+ #ifndef UNITY_SUPPORT_64
123
+ TEST_IGNORE();
124
+ #else
125
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
126
+
127
+ EXPECT_ABORT_BEGIN
128
+ TEST_ASSERT_INT64_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
129
+ VERIFY_FAILS_END
130
+ #endif
131
+ }
132
+
133
+ void testInt64ArrayWithinDeltaExpectedNullAndMessage(void)
134
+ {
135
+ #ifndef UNITY_SUPPORT_64
136
+ TEST_IGNORE();
137
+ #else
138
+ UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
139
+
140
+ EXPECT_ABORT_BEGIN
141
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
142
+ VERIFY_FAILS_END
143
+ #endif
144
+ }
145
+
146
+ void testInt64ArrayWithinDeltaActualNull(void)
147
+ {
148
+ #ifndef UNITY_SUPPORT_64
149
+ TEST_IGNORE();
150
+ #else
151
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
152
+
153
+ EXPECT_ABORT_BEGIN
154
+ TEST_ASSERT_INT64_ARRAY_WITHIN(110, expected, NULL, 3);
155
+ VERIFY_FAILS_END
156
+ #endif
157
+ }
158
+
159
+ void testInt64ArrayWithinDeltaActualNullAndMessage(void)
160
+ {
161
+ #ifndef UNITY_SUPPORT_64
162
+ TEST_IGNORE();
163
+ #else
164
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
165
+
166
+ EXPECT_ABORT_BEGIN
167
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
168
+ VERIFY_FAILS_END
169
+ #endif
170
+ }
171
+
172
+ void testInt64ArrayWithinDeltaSamePointer(void)
173
+ {
174
+ #ifndef UNITY_SUPPORT_64
175
+ TEST_IGNORE();
176
+ #else
177
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
178
+
179
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, expected, 3);
180
+ #endif
181
+ }
182
+
183
+ void testInt64ArrayWithinDeltaSamePointerAndMessage(void)
184
+ {
185
+ #ifndef UNITY_SUPPORT_64
186
+ TEST_IGNORE();
187
+ #else
188
+ UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
189
+
190
+ TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
191
+ #endif
192
+ }
193
+
194
+ void testIntArrayWithinDelta(void)
195
+ {
196
+ UNITY_INT expected[] = {5000, -4995, 5005};
197
+ UNITY_INT actualSmallDelta[] = {5001, -4996, 5005};
198
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
199
+
200
+ TEST_ASSERT_INT_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
201
+ TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
202
+ }
203
+
204
+ void testIntArrayWithinDeltaAndMessage(void)
205
+ {
206
+ UNITY_INT expected[] = {5000, -4995, 5005};
207
+ UNITY_INT actualSmallDelta[] = {5001, -4996, 5005};
208
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
209
+
210
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
211
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
212
+ }
213
+
214
+ void testIntArrayNotWithinDelta(void)
215
+ {
216
+ UNITY_INT expected[] = {5000, -4995, 5005};
217
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
218
+
219
+ EXPECT_ABORT_BEGIN
220
+ TEST_ASSERT_INT_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
221
+ VERIFY_FAILS_END
222
+ }
223
+
224
+ void testIntArrayNotWithinDeltaAndMessage(void)
225
+ {
226
+ UNITY_INT expected[] = {5000, -4995, 5005};
227
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
228
+
229
+ EXPECT_ABORT_BEGIN
230
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
231
+ VERIFY_FAILS_END
232
+ }
233
+
234
+ void testIntArrayWithinDeltaPointless(void)
235
+ {
236
+ UNITY_INT expected[] = {5000, -4995, 5005};
237
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
238
+
239
+ EXPECT_ABORT_BEGIN
240
+ TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
241
+ VERIFY_FAILS_END
242
+ }
243
+
244
+ void testIntArrayWithinDeltaPointlessAndMessage(void)
245
+ {
246
+ UNITY_INT expected[] = {5000, -4995, 5005};
247
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
248
+
249
+ EXPECT_ABORT_BEGIN
250
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
251
+ VERIFY_FAILS_END
252
+ }
253
+
254
+ void testIntArrayWithinDeltaExpectedNull(void)
255
+ {
256
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
257
+
258
+ EXPECT_ABORT_BEGIN
259
+ TEST_ASSERT_INT_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
260
+ VERIFY_FAILS_END
261
+ }
262
+
263
+ void testIntArrayWithinDeltaExpectedNullAndMessage(void)
264
+ {
265
+ UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
266
+
267
+ EXPECT_ABORT_BEGIN
268
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
269
+ VERIFY_FAILS_END
270
+ }
271
+
272
+ void testIntArrayWithinDeltaActualNull(void)
273
+ {
274
+ UNITY_INT expected[] = {5000, -4995, 5005};
275
+
276
+ EXPECT_ABORT_BEGIN
277
+ TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, NULL, 3);
278
+ VERIFY_FAILS_END
279
+ }
280
+
281
+ void testIntArrayWithinDeltaActualNullAndMessage(void)
282
+ {
283
+ UNITY_INT expected[] = {5000, -4995, 5005};
284
+
285
+ EXPECT_ABORT_BEGIN
286
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
287
+ VERIFY_FAILS_END
288
+ }
289
+
290
+ void testIntArrayWithinDeltaSamePointer(void)
291
+ {
292
+ UNITY_INT expected[] = {5000, -4995, 5005};
293
+
294
+ TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, expected, 3);
295
+ }
296
+
297
+ void testIntArrayWithinDeltaSamePointerAndMessage(void)
298
+ {
299
+ UNITY_INT expected[] = {5000, -4995, 5005};
300
+
301
+ TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
302
+ }
303
+
304
+ void testInt16ArrayWithinDelta(void)
305
+ {
306
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
307
+ UNITY_INT16 actualSmallDelta[] = {5001, -4996, 5005};
308
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
309
+
310
+ TEST_ASSERT_INT16_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
311
+ TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
312
+ }
313
+
314
+ void testInt16ArrayWithinDeltaAndMessage(void)
315
+ {
316
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
317
+ UNITY_INT16 actualSmallDelta[] = {5001, -4996, 5005};
318
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
319
+
320
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
321
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
322
+ }
323
+
324
+ void testInt16ArrayNotWithinDelta(void)
325
+ {
326
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
327
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
328
+
329
+ EXPECT_ABORT_BEGIN
330
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
331
+ VERIFY_FAILS_END
332
+ }
333
+
334
+ void testInt16ArrayNotWithinDeltaAndMessage(void)
335
+ {
336
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
337
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
338
+
339
+ EXPECT_ABORT_BEGIN
340
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
341
+ VERIFY_FAILS_END
342
+ }
343
+
344
+ void testInt16ArrayWithinDeltaPointless(void)
345
+ {
346
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
347
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
348
+
349
+ EXPECT_ABORT_BEGIN
350
+ TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
351
+ VERIFY_FAILS_END
352
+ }
353
+
354
+ void testInt16ArrayWithinDeltaPointlessAndMessage(void)
355
+ {
356
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
357
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
358
+
359
+ EXPECT_ABORT_BEGIN
360
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
361
+ VERIFY_FAILS_END
362
+ }
363
+
364
+ void testInt16ArrayWithinDeltaExpectedNull(void)
365
+ {
366
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
367
+
368
+ EXPECT_ABORT_BEGIN
369
+ TEST_ASSERT_INT16_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
370
+ VERIFY_FAILS_END
371
+ }
372
+
373
+ void testInt16ArrayWithinDeltaExpectedNullAndMessage(void)
374
+ {
375
+ UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
376
+
377
+ EXPECT_ABORT_BEGIN
378
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
379
+ VERIFY_FAILS_END
380
+ }
381
+
382
+ void testInt16ArrayWithinDeltaActualNull(void)
383
+ {
384
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
385
+
386
+ EXPECT_ABORT_BEGIN
387
+ TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, NULL, 3);
388
+ VERIFY_FAILS_END
389
+ }
390
+
391
+ void testInt16ArrayWithinDeltaActualNullAndMessage(void)
392
+ {
393
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
394
+
395
+ EXPECT_ABORT_BEGIN
396
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
397
+ VERIFY_FAILS_END
398
+ }
399
+
400
+ void testInt16ArrayWithinDeltaSamePointer(void)
401
+ {
402
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
403
+
404
+ TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, expected, 3);
405
+ }
406
+
407
+ void testInt16ArrayWithinDeltaSamePointerAndMessage(void)
408
+ {
409
+ UNITY_INT16 expected[] = {5000, -4995, 5005};
410
+
411
+ TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
412
+ }
413
+
414
+ void testInt8ArrayWithinDelta(void)
415
+ {
416
+ UNITY_INT8 expected[] = {20, -95, 55};
417
+ UNITY_INT8 actualSmallDelta[] = {21, -94, 55};
418
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
419
+
420
+ TEST_ASSERT_INT8_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
421
+ TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, actualBigDelta, 3);
422
+ }
423
+
424
+ void testInt8ArrayWithinDeltaAndMessage(void)
425
+ {
426
+ UNITY_INT8 expected[] = {20, -95, 55};
427
+ UNITY_INT8 actualSmallDelta[] = {21, -94, 55};
428
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
429
+
430
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
431
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 3, "Custom Message.");
432
+ }
433
+
434
+ void testInt8ArrayNotWithinDelta(void)
435
+ {
436
+ UNITY_INT8 expected[] = {20, -95, 55};
437
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
438
+
439
+ EXPECT_ABORT_BEGIN
440
+ TEST_ASSERT_INT8_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
441
+ VERIFY_FAILS_END
442
+ }
443
+
444
+ void testInt8ArrayNotWithinDeltaAndMessage(void)
445
+ {
446
+ UNITY_INT8 expected[] = {20, -95, 55};
447
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
448
+
449
+ EXPECT_ABORT_BEGIN
450
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
451
+ VERIFY_FAILS_END
452
+ }
453
+
454
+ void testInt8ArrayWithinDeltaPointless(void)
455
+ {
456
+ UNITY_INT8 expected[] = {20, -95, 55};
457
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
458
+
459
+ EXPECT_ABORT_BEGIN
460
+ TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, actualBigDelta, 0);
461
+ VERIFY_FAILS_END
462
+ }
463
+
464
+ void testInt8ArrayWithinDeltaPointlessAndMessage(void)
465
+ {
466
+ UNITY_INT8 expected[] = {20, -95, 55};
467
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
468
+
469
+ EXPECT_ABORT_BEGIN
470
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 0, "Custom Message.");
471
+ VERIFY_FAILS_END
472
+ }
473
+
474
+ void testInt8ArrayWithinDeltaExpectedNull(void)
475
+ {
476
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
477
+
478
+ EXPECT_ABORT_BEGIN
479
+ TEST_ASSERT_INT8_ARRAY_WITHIN(11, NULL, actualBigDelta, 3);
480
+ VERIFY_FAILS_END
481
+ }
482
+
483
+ void testInt8ArrayWithinDeltaExpectedNullAndMessage(void)
484
+ {
485
+ UNITY_INT8 actualBigDelta[] = {11, -86, 45};
486
+
487
+ EXPECT_ABORT_BEGIN
488
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, NULL, actualBigDelta, 3, "Custom Message.");
489
+ VERIFY_FAILS_END
490
+ }
491
+
492
+ void testInt8ArrayWithinDeltaActualNull(void)
493
+ {
494
+ UNITY_INT8 expected[] = {20, -95, 55};
495
+
496
+ EXPECT_ABORT_BEGIN
497
+ TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, NULL, 3);
498
+ VERIFY_FAILS_END
499
+ }
500
+
501
+ void testInt8ArrayWithinDeltaActualNullAndMessage(void)
502
+ {
503
+ UNITY_INT8 expected[] = {20, -95, 55};
504
+
505
+ EXPECT_ABORT_BEGIN
506
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, NULL, 3, "Custom Message.");
507
+ VERIFY_FAILS_END
508
+ }
509
+
510
+ void testInt8ArrayWithinDeltaSamePointer(void)
511
+ {
512
+ UNITY_INT8 expected[] = {20, -95, 55};
513
+
514
+ TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, expected, 3);
515
+ }
516
+
517
+ void testInt8ArrayWithinDeltaSamePointerAndMessage(void)
518
+ {
519
+ UNITY_INT8 expected[] = {20, -95, 55};
520
+
521
+ TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, expected, 3, "Custom Message.");
522
+ }
523
+
524
+ void testCHARArrayWithinDelta(void)
525
+ {
526
+ char expected[] = {20, -95, 55};
527
+ char actualSmallDelta[] = {21, -94, 55};
528
+ char actualBigDelta[] = {11, -86, 45};
529
+
530
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
531
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, actualBigDelta, 3);
532
+ }
533
+
534
+ void testCHARArrayWithinDeltaAndMessage(void)
535
+ {
536
+ char expected[] = {20, -95, 55};
537
+ char actualSmallDelta[] = {21, -94, 55};
538
+ char actualBigDelta[] = {11, -86, 45};
539
+
540
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
541
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 3, "Custom Message.");
542
+ }
543
+
544
+ void testCHARArrayNotWithinDelta(void)
545
+ {
546
+ char expected[] = {20, -95, 55};
547
+ char actualBigDelta[] = {11, -86, 45};
548
+
549
+ EXPECT_ABORT_BEGIN
550
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
551
+ VERIFY_FAILS_END
552
+ }
553
+
554
+ void testCHARArrayNotWithinDeltaAndMessage(void)
555
+ {
556
+ char expected[] = {20, -95, 55};
557
+ char actualBigDelta[] = {11, -86, 45};
558
+
559
+ EXPECT_ABORT_BEGIN
560
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
561
+ VERIFY_FAILS_END
562
+ }
563
+
564
+ void testCHARArrayWithinDeltaPointless(void)
565
+ {
566
+ char expected[] = {20, -95, 55};
567
+ char actualBigDelta[] = {11, -86, 45};
568
+
569
+ EXPECT_ABORT_BEGIN
570
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, actualBigDelta, 0);
571
+ VERIFY_FAILS_END
572
+ }
573
+
574
+ void testCHARArrayWithinDeltaPointlessAndMessage(void)
575
+ {
576
+ char expected[] = {20, -95, 55};
577
+ char actualBigDelta[] = {11, -86, 45};
578
+
579
+ EXPECT_ABORT_BEGIN
580
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 0, "Custom Message.");
581
+ VERIFY_FAILS_END
582
+ }
583
+
584
+ void testCHARArrayWithinDeltaExpectedNull(void)
585
+ {
586
+ char actualBigDelta[] = {11, -86, 45};
587
+
588
+ EXPECT_ABORT_BEGIN
589
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(11, NULL, actualBigDelta, 3);
590
+ VERIFY_FAILS_END
591
+ }
592
+
593
+ void testCHARArrayWithinDeltaExpectedNullAndMessage(void)
594
+ {
595
+ char actualBigDelta[] = {11, -86, 45};
596
+
597
+ EXPECT_ABORT_BEGIN
598
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, NULL, actualBigDelta, 3, "Custom Message.");
599
+ VERIFY_FAILS_END
600
+ }
601
+
602
+ void testCHARArrayWithinDeltaActualNull(void)
603
+ {
604
+ char expected[] = {20, -95, 55};
605
+
606
+ EXPECT_ABORT_BEGIN
607
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, NULL, 3);
608
+ VERIFY_FAILS_END
609
+ }
610
+
611
+ void testCHARArrayWithinDeltaActualNullAndMessage(void)
612
+ {
613
+ char expected[] = {20, -95, 55};
614
+
615
+ EXPECT_ABORT_BEGIN
616
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, NULL, 3, "Custom Message.");
617
+ VERIFY_FAILS_END
618
+ }
619
+
620
+ void testCHARArrayWithinDeltaSamePointer(void)
621
+ {
622
+ char expected[] = {20, -95, 55};
623
+
624
+ TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, expected, 3);
625
+ }
626
+
627
+ void testCHARArrayWithinDeltaSamePointerAndMessage(void)
628
+ {
629
+ char expected[] = {20, -95, 55};
630
+
631
+ TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, expected, 3, "Custom Message.");
632
+ }
633
+
634
+ void testUInt64ArrayWithinDelta(void)
635
+ {
636
+ #ifndef UNITY_SUPPORT_64
637
+ TEST_IGNORE();
638
+ #else
639
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
640
+ UNITY_UINT64 actualSmallDelta[] = {12345001, 12344996, 12345005};
641
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
642
+
643
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
644
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
645
+ #endif
646
+ }
647
+
648
+ void testUInt64ArrayWithinDeltaAndMessage(void)
649
+ {
650
+ #ifndef UNITY_SUPPORT_64
651
+ TEST_IGNORE();
652
+ #else
653
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
654
+ UNITY_UINT64 actualSmallDelta[] = {12345001, 12344996, 12345005};
655
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
656
+
657
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
658
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
659
+ #endif
660
+ }
661
+
662
+ void testUInt64ArrayNotWithinDelta(void)
663
+ {
664
+ #ifndef UNITY_SUPPORT_64
665
+ TEST_IGNORE();
666
+ #else
667
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
668
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
669
+
670
+ EXPECT_ABORT_BEGIN
671
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
672
+ VERIFY_FAILS_END
673
+ #endif
674
+ }
675
+
676
+ void testUInt64ArrayNotWithinDeltaAndMessage(void)
677
+ {
678
+ #ifndef UNITY_SUPPORT_64
679
+ TEST_IGNORE();
680
+ #else
681
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
682
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
683
+
684
+ EXPECT_ABORT_BEGIN
685
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
686
+ VERIFY_FAILS_END
687
+ #endif
688
+ }
689
+
690
+ void testUInt64ArrayWithinDeltaPointless(void)
691
+ {
692
+ #ifndef UNITY_SUPPORT_64
693
+ TEST_IGNORE();
694
+ #else
695
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
696
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
697
+
698
+ EXPECT_ABORT_BEGIN
699
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
700
+ VERIFY_FAILS_END
701
+ #endif
702
+ }
703
+
704
+ void testUInt64ArrayWithinDeltaPointlessAndMessage(void)
705
+ {
706
+ #ifndef UNITY_SUPPORT_64
707
+ TEST_IGNORE();
708
+ #else
709
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
710
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
711
+
712
+ EXPECT_ABORT_BEGIN
713
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
714
+ VERIFY_FAILS_END
715
+ #endif
716
+ }
717
+
718
+ void testUInt64ArrayWithinDeltaExpectedNull(void)
719
+ {
720
+ #ifndef UNITY_SUPPORT_64
721
+ TEST_IGNORE();
722
+ #else
723
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
724
+
725
+ EXPECT_ABORT_BEGIN
726
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
727
+ VERIFY_FAILS_END
728
+ #endif
729
+ }
730
+
731
+ void testUInt64ArrayWithinDeltaExpectedNullAndMessage(void)
732
+ {
733
+ #ifndef UNITY_SUPPORT_64
734
+ TEST_IGNORE();
735
+ #else
736
+ UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
737
+
738
+ EXPECT_ABORT_BEGIN
739
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
740
+ VERIFY_FAILS_END
741
+ #endif
742
+ }
743
+
744
+ void testUInt64ArrayWithinDeltaActualNull(void)
745
+ {
746
+ #ifndef UNITY_SUPPORT_64
747
+ TEST_IGNORE();
748
+ #else
749
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
750
+
751
+ EXPECT_ABORT_BEGIN
752
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, NULL, 3);
753
+ VERIFY_FAILS_END
754
+ #endif
755
+ }
756
+
757
+ void testUInt64ArrayWithinDeltaActualNullAndMessage(void)
758
+ {
759
+ #ifndef UNITY_SUPPORT_64
760
+ TEST_IGNORE();
761
+ #else
762
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
763
+
764
+ EXPECT_ABORT_BEGIN
765
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
766
+ VERIFY_FAILS_END
767
+ #endif
768
+ }
769
+
770
+ void testUInt64ArrayWithinDeltaSamePointer(void)
771
+ {
772
+ #ifndef UNITY_SUPPORT_64
773
+ TEST_IGNORE();
774
+ #else
775
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
776
+
777
+ TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, expected, 3);
778
+ #endif
779
+ }
780
+
781
+ void testUInt64ArrayWithinDeltaSamePointerAndMessage(void)
782
+ {
783
+ #ifndef UNITY_SUPPORT_64
784
+ TEST_IGNORE();
785
+ #else
786
+ UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
787
+
788
+ TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
789
+ #endif
790
+ }
791
+
792
+ void testUIntArrayWithinDelta(void)
793
+ {
794
+ UNITY_UINT expected[] = {125000, 124995, 125005};
795
+ UNITY_UINT actualSmallDelta[] = {125001, 124996, 125005};
796
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
797
+
798
+ TEST_ASSERT_UINT_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
799
+ TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
800
+ }
801
+
802
+ void testUIntArrayWithinDeltaAndMessage(void)
803
+ {
804
+ UNITY_UINT expected[] = {125000, 124995, 125005};
805
+ UNITY_UINT actualSmallDelta[] = {125001, 124996, 125005};
806
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
807
+
808
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
809
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
810
+ }
811
+
812
+ void testUIntArrayNotWithinDelta(void)
813
+ {
814
+ UNITY_UINT expected[] = {125000, 124995, 125005};
815
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
816
+
817
+ EXPECT_ABORT_BEGIN
818
+ TEST_ASSERT_UINT_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
819
+ VERIFY_FAILS_END
820
+ }
821
+
822
+ void testUIntArrayNotWithinDeltaAndMessage(void)
823
+ {
824
+ UNITY_UINT expected[] = {125000, 124995, 125005};
825
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
826
+
827
+ EXPECT_ABORT_BEGIN
828
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
829
+ VERIFY_FAILS_END
830
+ }
831
+
832
+ void testUIntArrayWithinDeltaPointless(void)
833
+ {
834
+ UNITY_UINT expected[] = {125000, 124995, 125005};
835
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
836
+
837
+ EXPECT_ABORT_BEGIN
838
+ TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
839
+ VERIFY_FAILS_END
840
+ }
841
+
842
+ void testUIntArrayWithinDeltaPointlessAndMessage(void)
843
+ {
844
+ UNITY_UINT expected[] = {125000, 124995, 125005};
845
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
846
+
847
+ EXPECT_ABORT_BEGIN
848
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
849
+ VERIFY_FAILS_END
850
+ }
851
+
852
+ void testUIntArrayWithinDeltaExpectedNull(void)
853
+ {
854
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
855
+
856
+ EXPECT_ABORT_BEGIN
857
+ TEST_ASSERT_UINT_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
858
+ VERIFY_FAILS_END
859
+ }
860
+
861
+ void testUIntArrayWithinDeltaExpectedNullAndMessage(void)
862
+ {
863
+ UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
864
+
865
+ EXPECT_ABORT_BEGIN
866
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
867
+ VERIFY_FAILS_END
868
+ }
869
+
870
+ void testUIntArrayWithinDeltaActualNull(void)
871
+ {
872
+ UNITY_UINT expected[] = {125000, 124995, 125005};
873
+
874
+ EXPECT_ABORT_BEGIN
875
+ TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, NULL, 3);
876
+ VERIFY_FAILS_END
877
+ }
878
+
879
+ void testUIntArrayWithinDeltaActualNullAndMessage(void)
880
+ {
881
+ UNITY_UINT expected[] = {125000, 124995, 125005};
882
+
883
+ EXPECT_ABORT_BEGIN
884
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
885
+ VERIFY_FAILS_END
886
+ }
887
+
888
+ void testUIntArrayWithinDeltaSamePointer(void)
889
+ {
890
+ UNITY_UINT expected[] = {125000, 124995, 125005};
891
+
892
+ TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, expected, 3);
893
+ }
894
+
895
+ void testUIntArrayWithinDeltaSamePointerAndMessage(void)
896
+ {
897
+ UNITY_UINT expected[] = {125000, 124995, 125005};
898
+
899
+ TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
900
+ }
901
+
902
+ void testUInt16ArrayWithinDelta(void)
903
+ {
904
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
905
+ UNITY_UINT16 actualSmallDelta[] = {5001, 4996, 5005};
906
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
907
+
908
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
909
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
910
+ }
911
+
912
+ void testUInt16ArrayWithinDeltaAndMessage(void)
913
+ {
914
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
915
+ UNITY_UINT16 actualSmallDelta[] = {5001, 4996, 5005};
916
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
917
+
918
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
919
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
920
+ }
921
+
922
+ void testUInt16ArrayNotWithinDelta(void)
923
+ {
924
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
925
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
926
+
927
+ EXPECT_ABORT_BEGIN
928
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
929
+ VERIFY_FAILS_END
930
+ }
931
+
932
+ void testUInt16ArrayNotWithinDeltaAndMessage(void)
933
+ {
934
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
935
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
936
+
937
+ EXPECT_ABORT_BEGIN
938
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
939
+ VERIFY_FAILS_END
940
+ }
941
+
942
+ void testUInt16ArrayWithinDeltaPointless(void)
943
+ {
944
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
945
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
946
+
947
+ EXPECT_ABORT_BEGIN
948
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
949
+ VERIFY_FAILS_END
950
+ }
951
+
952
+ void testUInt16ArrayWithinDeltaPointlessAndMessage(void)
953
+ {
954
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
955
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
956
+
957
+ EXPECT_ABORT_BEGIN
958
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
959
+ VERIFY_FAILS_END
960
+ }
961
+
962
+ void testUInt16ArrayWithinDeltaExpectedNull(void)
963
+ {
964
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
965
+
966
+ EXPECT_ABORT_BEGIN
967
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
968
+ VERIFY_FAILS_END
969
+ }
970
+
971
+ void testUInt16ArrayWithinDeltaExpectedNullAndMessage(void)
972
+ {
973
+ UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
974
+
975
+ EXPECT_ABORT_BEGIN
976
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
977
+ VERIFY_FAILS_END
978
+ }
979
+
980
+ void testUInt16ArrayWithinDeltaActualNull(void)
981
+ {
982
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
983
+
984
+ EXPECT_ABORT_BEGIN
985
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, NULL, 3);
986
+ VERIFY_FAILS_END
987
+ }
988
+
989
+ void testUInt16ArrayWithinDeltaActualNullAndMessage(void)
990
+ {
991
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
992
+
993
+ EXPECT_ABORT_BEGIN
994
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
995
+ VERIFY_FAILS_END
996
+ }
997
+
998
+ void testUInt16ArrayWithinDeltaSamePointer(void)
999
+ {
1000
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
1001
+
1002
+ TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, expected, 3);
1003
+ }
1004
+
1005
+ void testUInt16ArrayWithinDeltaSamePointerAndMessage(void)
1006
+ {
1007
+ UNITY_UINT16 expected[] = {5000, 4995, 5005};
1008
+
1009
+ TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
1010
+ }
1011
+
1012
+ void testUInt8ArrayWithinDelta(void)
1013
+ {
1014
+ UNITY_UINT8 expected[] = {20, 95, 55};
1015
+ UNITY_UINT8 actualSmallDelta[] = {21, 94, 55};
1016
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1017
+
1018
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
1019
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, actualBigDelta, 3);
1020
+ }
1021
+
1022
+ void testUInt8ArrayWithinDeltaAndMessage(void)
1023
+ {
1024
+ UNITY_UINT8 expected[] = {20, 95, 55};
1025
+ UNITY_UINT8 actualSmallDelta[] = {21, 94, 55};
1026
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1027
+
1028
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
1029
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 3, "Custom Message.");
1030
+ }
1031
+
1032
+ void testUInt8ArrayNotWithinDelta(void)
1033
+ {
1034
+ UNITY_UINT8 expected[] = {20, 95, 55};
1035
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1036
+
1037
+ EXPECT_ABORT_BEGIN
1038
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
1039
+ VERIFY_FAILS_END
1040
+ }
1041
+
1042
+ void testUInt8ArrayNotWithinDeltaAndMessage(void)
1043
+ {
1044
+ UNITY_UINT8 expected[] = {20, 95, 55};
1045
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1046
+
1047
+ EXPECT_ABORT_BEGIN
1048
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
1049
+ VERIFY_FAILS_END
1050
+ }
1051
+
1052
+ void testUInt8ArrayWithinDeltaPointless(void)
1053
+ {
1054
+ UNITY_UINT8 expected[] = {20, 95, 55};
1055
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1056
+
1057
+ EXPECT_ABORT_BEGIN
1058
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, actualBigDelta, 0);
1059
+ VERIFY_FAILS_END
1060
+ }
1061
+
1062
+ void testUInt8ArrayWithinDeltaPointlessAndMessage(void)
1063
+ {
1064
+ UNITY_UINT8 expected[] = {20, 95, 55};
1065
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1066
+
1067
+ EXPECT_ABORT_BEGIN
1068
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 0, "Custom Message.");
1069
+ VERIFY_FAILS_END
1070
+ }
1071
+
1072
+ void testUInt8ArrayWithinDeltaExpectedNull(void)
1073
+ {
1074
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1075
+
1076
+ EXPECT_ABORT_BEGIN
1077
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(11, NULL, actualBigDelta, 3);
1078
+ VERIFY_FAILS_END
1079
+ }
1080
+
1081
+ void testUInt8ArrayWithinDeltaExpectedNullAndMessage(void)
1082
+ {
1083
+ UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
1084
+
1085
+ EXPECT_ABORT_BEGIN
1086
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, NULL, actualBigDelta, 3, "Custom Message.");
1087
+ VERIFY_FAILS_END
1088
+ }
1089
+
1090
+ void testUInt8ArrayWithinDeltaActualNull(void)
1091
+ {
1092
+ UNITY_UINT8 expected[] = {20, 95, 55};
1093
+
1094
+ EXPECT_ABORT_BEGIN
1095
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, NULL, 3);
1096
+ VERIFY_FAILS_END
1097
+ }
1098
+
1099
+ void testUInt8ArrayWithinDeltaActualNullAndMessage(void)
1100
+ {
1101
+ UNITY_UINT8 expected[] = {20, 95, 55};
1102
+
1103
+ EXPECT_ABORT_BEGIN
1104
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, NULL, 3, "Custom Message.");
1105
+ VERIFY_FAILS_END
1106
+ }
1107
+
1108
+ void testUInt8ArrayWithinDeltaSamePointer(void)
1109
+ {
1110
+ UNITY_UINT8 expected[] = {20, 95, 55};
1111
+
1112
+ TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, expected, 3);
1113
+ }
1114
+
1115
+ void testUInt8ArrayWithinDeltaSamePointerAndMessage(void)
1116
+ {
1117
+ UNITY_UINT8 expected[] = {20, 95, 55};
1118
+
1119
+ TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, expected, 3, "Custom Message.");
1120
+ }
1121
+
1122
+ void testHEX64ArrayWithinDelta(void)
1123
+ {
1124
+ #ifndef UNITY_SUPPORT_64
1125
+ TEST_IGNORE();
1126
+ #else
1127
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1128
+ UNITY_UINT64 actualSmallDelta[] = {0xABCD123500000000, 0xABCD112100000000, 0xABCD127700000000};
1129
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1130
+
1131
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x100000000, expected, actualSmallDelta, 3);
1132
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, actualBigDelta, 3);
1133
+ #endif
1134
+ }
1135
+
1136
+ void testHEX64ArrayWithinDeltaAndMessage(void)
1137
+ {
1138
+ #ifndef UNITY_SUPPORT_64
1139
+ TEST_IGNORE();
1140
+ #else
1141
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1142
+ UNITY_UINT64 actualSmallDelta[] = {0xABCD123500000000, 0xABCD112100000000, 0xABCD127700000000};
1143
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1144
+
1145
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x100000000, expected, actualSmallDelta, 3, "Custom Message.");
1146
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, actualBigDelta, 3, "Custom Message.");
1147
+ #endif
1148
+ }
1149
+
1150
+ void testHEX64ArrayNotWithinDelta(void)
1151
+ {
1152
+ #ifndef UNITY_SUPPORT_64
1153
+ TEST_IGNORE();
1154
+ #else
1155
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1156
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1157
+
1158
+ EXPECT_ABORT_BEGIN
1159
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x100000000, expected, actualBigDelta, 3);
1160
+ VERIFY_FAILS_END
1161
+ #endif
1162
+ }
1163
+
1164
+ void testHEX64ArrayNotWithinDeltaAndMessage(void)
1165
+ {
1166
+ #ifndef UNITY_SUPPORT_64
1167
+ TEST_IGNORE();
1168
+ #else
1169
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1170
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1171
+
1172
+ EXPECT_ABORT_BEGIN
1173
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x100000000, expected, actualBigDelta, 3, "Custom Message.");
1174
+ VERIFY_FAILS_END
1175
+ #endif
1176
+ }
1177
+
1178
+ void testHEX64ArrayWithinDeltaPointless(void)
1179
+ {
1180
+ #ifndef UNITY_SUPPORT_64
1181
+ TEST_IGNORE();
1182
+ #else
1183
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1184
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1185
+
1186
+ EXPECT_ABORT_BEGIN
1187
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, actualBigDelta, 0);
1188
+ VERIFY_FAILS_END
1189
+ #endif
1190
+ }
1191
+
1192
+ void testHEX64ArrayWithinDeltaPointlessAndMessage(void)
1193
+ {
1194
+ #ifndef UNITY_SUPPORT_64
1195
+ TEST_IGNORE();
1196
+ #else
1197
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1198
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1199
+
1200
+ EXPECT_ABORT_BEGIN
1201
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, actualBigDelta, 0, "Custom Message.");
1202
+ VERIFY_FAILS_END
1203
+ #endif
1204
+ }
1205
+
1206
+ void testHEX64ArrayWithinDeltaExpectedNull(void)
1207
+ {
1208
+ #ifndef UNITY_SUPPORT_64
1209
+ TEST_IGNORE();
1210
+ #else
1211
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1212
+
1213
+ EXPECT_ABORT_BEGIN
1214
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, NULL, actualBigDelta, 3);
1215
+ VERIFY_FAILS_END
1216
+ #endif
1217
+ }
1218
+
1219
+ void testHEX64ArrayWithinDeltaExpectedNullAndMessage(void)
1220
+ {
1221
+ #ifndef UNITY_SUPPORT_64
1222
+ TEST_IGNORE();
1223
+ #else
1224
+ UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
1225
+
1226
+ EXPECT_ABORT_BEGIN
1227
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, NULL, actualBigDelta, 3, "Custom Message.");
1228
+ VERIFY_FAILS_END
1229
+ #endif
1230
+ }
1231
+
1232
+ void testHEX64ArrayWithinDeltaActualNull(void)
1233
+ {
1234
+ #ifndef UNITY_SUPPORT_64
1235
+ TEST_IGNORE();
1236
+ #else
1237
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1238
+
1239
+ EXPECT_ABORT_BEGIN
1240
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, NULL, 3);
1241
+ VERIFY_FAILS_END
1242
+ #endif
1243
+ }
1244
+
1245
+ void testHEX64ArrayWithinDeltaActualNullAndMessage(void)
1246
+ {
1247
+ #ifndef UNITY_SUPPORT_64
1248
+ TEST_IGNORE();
1249
+ #else
1250
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1251
+
1252
+ EXPECT_ABORT_BEGIN
1253
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, NULL, 3, "Custom Message.");
1254
+ VERIFY_FAILS_END
1255
+ #endif
1256
+ }
1257
+
1258
+ void testHEX64ArrayWithinDeltaSamePointer(void)
1259
+ {
1260
+ #ifndef UNITY_SUPPORT_64
1261
+ TEST_IGNORE();
1262
+ #else
1263
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1264
+
1265
+ TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, expected, 3);
1266
+ #endif
1267
+ }
1268
+
1269
+ void testHEX64ArrayWithinDeltaSamePointerAndMessage(void)
1270
+ {
1271
+ #ifndef UNITY_SUPPORT_64
1272
+ TEST_IGNORE();
1273
+ #else
1274
+ UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
1275
+
1276
+ TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, expected, 3, "Custom Message.");
1277
+ #endif
1278
+ }
1279
+
1280
+ void testHEX32ArrayWithinDelta(void)
1281
+ {
1282
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1283
+ UNITY_UINT actualSmallDelta[] = {0xABCD1235, 0xABCD1121, 0xABCD1277};
1284
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1285
+
1286
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
1287
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
1288
+ }
1289
+
1290
+ void testHEX32ArrayWithinDeltaAndMessage(void)
1291
+ {
1292
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1293
+ UNITY_UINT actualSmallDelta[] = {0xABCD1235, 0xABCD1121, 0xABCD1277};
1294
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1295
+
1296
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
1297
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
1298
+ }
1299
+
1300
+ void testHEX32ArrayNotWithinDelta(void)
1301
+ {
1302
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1303
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1304
+
1305
+ EXPECT_ABORT_BEGIN
1306
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
1307
+ VERIFY_FAILS_END
1308
+ }
1309
+
1310
+ void testHEX32ArrayNotWithinDeltaAndMessage(void)
1311
+ {
1312
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1313
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1314
+
1315
+ EXPECT_ABORT_BEGIN
1316
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
1317
+ VERIFY_FAILS_END
1318
+ }
1319
+
1320
+ void testHEX32ArrayWithinDeltaPointless(void)
1321
+ {
1322
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1323
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1324
+
1325
+ EXPECT_ABORT_BEGIN
1326
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
1327
+ VERIFY_FAILS_END
1328
+ }
1329
+
1330
+ void testHEX32ArrayWithinDeltaPointlessAndMessage(void)
1331
+ {
1332
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1333
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1334
+
1335
+ EXPECT_ABORT_BEGIN
1336
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
1337
+ VERIFY_FAILS_END
1338
+ }
1339
+
1340
+ void testHEX32ArrayWithinDeltaExpectedNull(void)
1341
+ {
1342
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1343
+
1344
+ EXPECT_ABORT_BEGIN
1345
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
1346
+ VERIFY_FAILS_END
1347
+ }
1348
+
1349
+ void testHEX32ArrayWithinDeltaExpectedNullAndMessage(void)
1350
+ {
1351
+ UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
1352
+
1353
+ EXPECT_ABORT_BEGIN
1354
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
1355
+ VERIFY_FAILS_END
1356
+ }
1357
+
1358
+ void testHEX32ArrayWithinDeltaActualNull(void)
1359
+ {
1360
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1361
+
1362
+ EXPECT_ABORT_BEGIN
1363
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, NULL, 3);
1364
+ VERIFY_FAILS_END
1365
+ }
1366
+
1367
+ void testHEX32ArrayWithinDeltaActualNullAndMessage(void)
1368
+ {
1369
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1370
+
1371
+ EXPECT_ABORT_BEGIN
1372
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
1373
+ VERIFY_FAILS_END
1374
+ }
1375
+
1376
+ void testHEX32ArrayWithinDeltaSamePointer(void)
1377
+ {
1378
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1379
+
1380
+ TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, expected, 3);
1381
+ }
1382
+
1383
+ void testHEX32ArrayWithinDeltaSamePointerAndMessage(void)
1384
+ {
1385
+ UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
1386
+
1387
+ TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
1388
+ }
1389
+
1390
+
1391
+ void testHEX16ArrayWithinDelta(void)
1392
+ {
1393
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1394
+ UNITY_UINT16 actualSmallDelta[] = {0x1235, 0x1121, 0x1277};
1395
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1396
+
1397
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
1398
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
1399
+ }
1400
+
1401
+ void testHEX16ArrayWithinDeltaAndMessage(void)
1402
+ {
1403
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1404
+ UNITY_UINT16 actualSmallDelta[] = {0x1235, 0x1121, 0x1277};
1405
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1406
+
1407
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
1408
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
1409
+ }
1410
+
1411
+ void testHEX16ArrayNotWithinDelta(void)
1412
+ {
1413
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1414
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1415
+
1416
+ EXPECT_ABORT_BEGIN
1417
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
1418
+ VERIFY_FAILS_END
1419
+ }
1420
+
1421
+ void testHEX16ArrayNotWithinDeltaAndMessage(void)
1422
+ {
1423
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1424
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1425
+
1426
+ EXPECT_ABORT_BEGIN
1427
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
1428
+ VERIFY_FAILS_END
1429
+ }
1430
+
1431
+ void testHEX16ArrayWithinDeltaPointless(void)
1432
+ {
1433
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1434
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1435
+
1436
+ EXPECT_ABORT_BEGIN
1437
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
1438
+ VERIFY_FAILS_END
1439
+ }
1440
+
1441
+ void testHEX16ArrayWithinDeltaPointlessAndMessage(void)
1442
+ {
1443
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1444
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1445
+
1446
+ EXPECT_ABORT_BEGIN
1447
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
1448
+ VERIFY_FAILS_END
1449
+ }
1450
+
1451
+ void testHEX16ArrayWithinDeltaExpectedNull(void)
1452
+ {
1453
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1454
+
1455
+ EXPECT_ABORT_BEGIN
1456
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
1457
+ VERIFY_FAILS_END
1458
+ }
1459
+
1460
+ void testHEX16ArrayWithinDeltaExpectedNullAndMessage(void)
1461
+ {
1462
+ UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
1463
+
1464
+ EXPECT_ABORT_BEGIN
1465
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
1466
+ VERIFY_FAILS_END
1467
+ }
1468
+
1469
+ void testHEX16ArrayWithinDeltaActualNull(void)
1470
+ {
1471
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1472
+
1473
+ EXPECT_ABORT_BEGIN
1474
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, NULL, 3);
1475
+ VERIFY_FAILS_END
1476
+ }
1477
+
1478
+ void testHEX16ArrayWithinDeltaActualNullAndMessage(void)
1479
+ {
1480
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1481
+
1482
+ EXPECT_ABORT_BEGIN
1483
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
1484
+ VERIFY_FAILS_END
1485
+ }
1486
+
1487
+ void testHEX16ArrayWithinDeltaSamePointer(void)
1488
+ {
1489
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1490
+
1491
+ TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, expected, 3);
1492
+ }
1493
+
1494
+ void testHEX16ArrayWithinDeltaSamePointerAndMessage(void)
1495
+ {
1496
+ UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
1497
+
1498
+ TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
1499
+ }
1500
+
1501
+ void testHEX8ArrayWithinDelta(void)
1502
+ {
1503
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1504
+ UNITY_UINT8 actualSmallDelta[] = {0x35, 0x21, 0x77};
1505
+ UNITY_UINT8 actualBigDelta[] = {0x47, 0x48, 0x4C};
1506
+
1507
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
1508
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, actualBigDelta, 3);
1509
+ }
1510
+
1511
+ void testHEX8ArrayWithinDeltaAndMessage(void)
1512
+ {
1513
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1514
+ UNITY_UINT8 actualSmallDelta[] = {0x35, 0x21, 0x77};
1515
+ UNITY_UINT8 actualBigDelta[] = {0x47, 0x48, 0x4C};
1516
+
1517
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
1518
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, actualBigDelta, 3, "Custom Message.");
1519
+ }
1520
+
1521
+ void testHEX8ArrayNotWithinDelta(void)
1522
+ {
1523
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1524
+ UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
1525
+
1526
+ EXPECT_ABORT_BEGIN
1527
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
1528
+ VERIFY_FAILS_END
1529
+ }
1530
+
1531
+ void testHEX8ArrayNotWithinDeltaAndMessage(void)
1532
+ {
1533
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1534
+ UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
1535
+
1536
+ EXPECT_ABORT_BEGIN
1537
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
1538
+ VERIFY_FAILS_END
1539
+ }
1540
+
1541
+ void testHEX8ArrayWithinDeltaPointless(void)
1542
+ {
1543
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1544
+ UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
1545
+
1546
+ EXPECT_ABORT_BEGIN
1547
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, actualBigDelta, 0);
1548
+ VERIFY_FAILS_END
1549
+ }
1550
+
1551
+ void testHEX8ArrayWithinDeltaPointlessAndMessage(void)
1552
+ {
1553
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1554
+ UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
1555
+
1556
+ EXPECT_ABORT_BEGIN
1557
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, actualBigDelta, 0, "Custom Message.");
1558
+ VERIFY_FAILS_END
1559
+ }
1560
+
1561
+ void testHEX8ArrayWithinDeltaExpectedNull(void)
1562
+ {
1563
+ UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
1564
+
1565
+ EXPECT_ABORT_BEGIN
1566
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(60, NULL, actualBigDelta, 3);
1567
+ VERIFY_FAILS_END
1568
+ }
1569
+
1570
+ void testHEX8ArrayWithinDeltaExpectedNullAndMessage(void)
1571
+ {
1572
+ UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
1573
+
1574
+ EXPECT_ABORT_BEGIN
1575
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, NULL, actualBigDelta, 3, "Custom Message.");
1576
+ VERIFY_FAILS_END
1577
+ }
1578
+
1579
+ void testHEX8ArrayWithinDeltaActualNull(void)
1580
+ {
1581
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1582
+
1583
+ EXPECT_ABORT_BEGIN
1584
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, NULL, 3);
1585
+ VERIFY_FAILS_END
1586
+ }
1587
+
1588
+ void testHEX8ArrayWithinDeltaActualNullAndMessage(void)
1589
+ {
1590
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1591
+
1592
+ EXPECT_ABORT_BEGIN
1593
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, NULL, 3, "Custom Message.");
1594
+ VERIFY_FAILS_END
1595
+ }
1596
+
1597
+ void testHEX8ArrayWithinDeltaSamePointer(void)
1598
+ {
1599
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1600
+
1601
+ TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, expected, 3);
1602
+ }
1603
+
1604
+ void testHEX8ArrayWithinDeltaSamePointerAndMessage(void)
1605
+ {
1606
+ UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
1607
+
1608
+ TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, expected, 3, "Custom Message.");
1609
+ }
1610
+
1611
+ void testEqualIntArrays(void)
1612
+ {
1613
+ int p0[] = {1, 8, 987, -2};
1614
+ int p1[] = {1, 8, 987, -2};
1615
+ int p2[] = {1, 8, 987, 2};
1616
+ int p3[] = {1, 500, 600, 700};
1617
+
1618
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p0, 1);
1619
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p0, 4);
1620
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
1621
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p2, 3);
1622
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p3, 1);
1623
+ TEST_ASSERT_EQUAL_INT_ARRAY(NULL, NULL, 1);
1624
+ }
1625
+
1626
+ void testNotEqualIntArraysNullExpected(void)
1627
+ {
1628
+ int* p0 = NULL;
1629
+ int p1[] = {1, 8, 987, 2};
1630
+
1631
+ EXPECT_ABORT_BEGIN
1632
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
1633
+ VERIFY_FAILS_END
1634
+ }
1635
+
1636
+ void testNotEqualIntArraysNullActual(void)
1637
+ {
1638
+ int* p1 = NULL;
1639
+ int p0[] = {1, 8, 987, 2};
1640
+
1641
+ EXPECT_ABORT_BEGIN
1642
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
1643
+ VERIFY_FAILS_END
1644
+ }
1645
+
1646
+ void testNotEqualIntArrays1(void)
1647
+ {
1648
+ int p0[] = {1, 8, 987, -2};
1649
+ int p1[] = {1, 8, 987, 2};
1650
+
1651
+ EXPECT_ABORT_BEGIN
1652
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
1653
+ VERIFY_FAILS_END
1654
+ }
1655
+
1656
+ void testNotEqualIntArrays2(void)
1657
+ {
1658
+ int p0[] = {1, 8, 987, -2};
1659
+ int p1[] = {2, 8, 987, -2};
1660
+
1661
+ EXPECT_ABORT_BEGIN
1662
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
1663
+ VERIFY_FAILS_END
1664
+ }
1665
+
1666
+ void testNotEqualIntArrays3(void)
1667
+ {
1668
+ int p0[] = {1, 8, 987, -2};
1669
+ int p1[] = {1, 8, 986, -2};
1670
+
1671
+ EXPECT_ABORT_BEGIN
1672
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
1673
+ VERIFY_FAILS_END
1674
+ }
1675
+
1676
+ void testNotEqualIntArraysLengthZero(void)
1677
+ {
1678
+ UNITY_UINT32 p0[1] = {1};
1679
+ UNITY_UINT32 p1[1] = {1};
1680
+
1681
+ EXPECT_ABORT_BEGIN
1682
+ TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 0);
1683
+ VERIFY_FAILS_END
1684
+ }
1685
+
1686
+ void testEqualIntEachEqual(void)
1687
+ {
1688
+ int p0[] = {1, 1, 1, 1};
1689
+ int p1[] = {987, 987, 987, 987};
1690
+ int p2[] = {-2, -2, -2, -3};
1691
+ int p3[] = {1, 5, 600, 700};
1692
+
1693
+ TEST_ASSERT_EACH_EQUAL_INT(1, p0, 1);
1694
+ TEST_ASSERT_EACH_EQUAL_INT(1, p0, 4);
1695
+ TEST_ASSERT_EACH_EQUAL_INT(987, p1, 4);
1696
+ TEST_ASSERT_EACH_EQUAL_INT(-2, p2, 3);
1697
+ TEST_ASSERT_EACH_EQUAL_INT(1, p3, 1);
1698
+ }
1699
+
1700
+ void testNotEqualIntEachEqualNullActual(void)
1701
+ {
1702
+ int* p1 = NULL;
1703
+
1704
+ EXPECT_ABORT_BEGIN
1705
+ TEST_ASSERT_EACH_EQUAL_INT(1, p1, 4);
1706
+ VERIFY_FAILS_END
1707
+ }
1708
+
1709
+ void testNotEqualIntEachEqual1(void)
1710
+ {
1711
+ int p0[] = {1, 1, 1, -2};
1712
+
1713
+ EXPECT_ABORT_BEGIN
1714
+ TEST_ASSERT_EACH_EQUAL_INT(1, p0, 4);
1715
+ VERIFY_FAILS_END
1716
+ }
1717
+
1718
+ void testNotEqualIntEachEqual2(void)
1719
+ {
1720
+ int p0[] = {-5, -5, -1, -5};
1721
+
1722
+ EXPECT_ABORT_BEGIN
1723
+ TEST_ASSERT_EACH_EQUAL_INT(-5, p0, 4);
1724
+ VERIFY_FAILS_END
1725
+ }
1726
+
1727
+ void testNotEqualIntEachEqual3(void)
1728
+ {
1729
+ int p0[] = {1, 88, 88, 88};
1730
+
1731
+ EXPECT_ABORT_BEGIN
1732
+ TEST_ASSERT_EACH_EQUAL_INT(88, p0, 4);
1733
+ VERIFY_FAILS_END
1734
+ }
1735
+
1736
+ void testNotEqualEachEqualLengthZero(void)
1737
+ {
1738
+ UNITY_UINT32 p0[1] = {1};
1739
+
1740
+ EXPECT_ABORT_BEGIN
1741
+ TEST_ASSERT_EACH_EQUAL_INT(0, p0, 0);
1742
+ VERIFY_FAILS_END
1743
+ }
1744
+
1745
+ void testEqualPtrArrays(void)
1746
+ {
1747
+ char A = 1;
1748
+ char B = 2;
1749
+ char C = 3;
1750
+ char* p0[] = {&A, &B, &C};
1751
+ char* p1[] = {&A, &B, &C, &A};
1752
+ char* p2[] = {&A, &B};
1753
+ char* p3[] = {&A};
1754
+
1755
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p0, 1);
1756
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p0, 3);
1757
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 3);
1758
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p1, p2, 2);
1759
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p3, p0, 1);
1760
+ }
1761
+
1762
+ void testNotEqualPtrArraysNullExpected(void)
1763
+ {
1764
+ char A = 1;
1765
+ char B = 2;
1766
+ char** p0 = NULL;
1767
+ char* p1[] = {&A, &B};
1768
+
1769
+ EXPECT_ABORT_BEGIN
1770
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 2);
1771
+ VERIFY_FAILS_END
1772
+ }
1773
+
1774
+ void testNotEqualPtrArraysNullActual(void)
1775
+ {
1776
+ char A = 1;
1777
+ char B = 2;
1778
+ char** p0 = NULL;
1779
+ char* p1[] = {&A, &B};
1780
+
1781
+ EXPECT_ABORT_BEGIN
1782
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p1, p0, 2);
1783
+ VERIFY_FAILS_END
1784
+ }
1785
+
1786
+ void testNotEqualPtrArrays1(void)
1787
+ {
1788
+ char A = 1;
1789
+ char B = 2;
1790
+ char C = 3;
1791
+ char* p0[] = {&A, &B, &C, &B};
1792
+ char* p1[] = {&A, &B, &C, &A};
1793
+
1794
+ EXPECT_ABORT_BEGIN
1795
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 4);
1796
+ VERIFY_FAILS_END
1797
+ }
1798
+
1799
+ void testNotEqualPtrArrays2(void)
1800
+ {
1801
+ char A = 1;
1802
+ char B = 2;
1803
+ char C = 3;
1804
+ char* p0[] = {&B, &B, &C, &A};
1805
+ char* p1[] = {&A, &B, &C, &A};
1806
+
1807
+ EXPECT_ABORT_BEGIN
1808
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 4);
1809
+ VERIFY_FAILS_END
1810
+ }
1811
+
1812
+ void testNotEqualPtrArrays3(void)
1813
+ {
1814
+ char A = 1;
1815
+ char B = 2;
1816
+ char C = 3;
1817
+ char* p0[] = {&A, &B, &B, &A};
1818
+ char* p1[] = {&A, &B, &C, &A};
1819
+
1820
+ EXPECT_ABORT_BEGIN
1821
+ TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 4);
1822
+ VERIFY_FAILS_END
1823
+ }
1824
+
1825
+ void testEqualPtrEachEqual(void)
1826
+ {
1827
+ char A = 1;
1828
+ char B = 2;
1829
+ char C = 3;
1830
+ char* p0[] = {&A, &A, &A};
1831
+ char* p1[] = {&A, &B, &C, &A};
1832
+ char* p2[] = {&B, &B};
1833
+ char* p3[] = {&C};
1834
+
1835
+ TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 1);
1836
+ TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 3);
1837
+ TEST_ASSERT_EACH_EQUAL_PTR(&A, p1, 1);
1838
+ TEST_ASSERT_EACH_EQUAL_PTR(&B, p2, 2);
1839
+ TEST_ASSERT_EACH_EQUAL_PTR(&C, p3, 1);
1840
+ }
1841
+
1842
+ void testNotEqualPtrEachEqualNullExpected(void)
1843
+ {
1844
+ char A = 1;
1845
+ char B = 1;
1846
+ char* p0[] = {&A, &B};
1847
+
1848
+ EXPECT_ABORT_BEGIN
1849
+ TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 2);
1850
+ VERIFY_FAILS_END
1851
+ }
1852
+
1853
+ void testNotEqualPtrEachEqualNullActual(void)
1854
+ {
1855
+ char A = 1;
1856
+ char** p0 = NULL;
1857
+
1858
+ EXPECT_ABORT_BEGIN
1859
+ TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 2);
1860
+ VERIFY_FAILS_END
1861
+ }
1862
+
1863
+ void testNotEqualPtrEachEqual1(void)
1864
+ {
1865
+ char A = 1;
1866
+ char B = 1;
1867
+ char* p0[] = {&A, &A, &A, &B};
1868
+
1869
+ EXPECT_ABORT_BEGIN
1870
+ TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 4);
1871
+ VERIFY_FAILS_END
1872
+ }
1873
+
1874
+ void testNotEqualPtrEachEqual2(void)
1875
+ {
1876
+ char A = 1;
1877
+ char B = 1;
1878
+ char* p0[] = {&B, &B, &A, &B};
1879
+
1880
+ EXPECT_ABORT_BEGIN
1881
+ TEST_ASSERT_EACH_EQUAL_PTR(&B, p0, 4);
1882
+ VERIFY_FAILS_END
1883
+ }
1884
+
1885
+ void testNotEqualPtrEachEqual3(void)
1886
+ {
1887
+ char A = 1;
1888
+ char B = 1;
1889
+ char* p0[] = {&A, &B, &B, &B};
1890
+
1891
+ EXPECT_ABORT_BEGIN
1892
+ TEST_ASSERT_EACH_EQUAL_PTR(&B, p0, 4);
1893
+ VERIFY_FAILS_END
1894
+ }
1895
+
1896
+ void testEqualInt8Arrays(void)
1897
+ {
1898
+ UNITY_INT8 p0[] = {1, 8, 117, -2};
1899
+ UNITY_INT8 p1[] = {1, 8, 117, -2};
1900
+ UNITY_INT8 p2[] = {1, 8, 117, 2};
1901
+ UNITY_INT8 p3[] = {1, 50, 60, 70};
1902
+
1903
+ TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p0, 1);
1904
+ TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p0, 4);
1905
+ TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p1, 4);
1906
+ TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p2, 3);
1907
+ TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p3, 1);
1908
+ }
1909
+
1910
+ void testNotEqualInt8Arrays(void)
1911
+ {
1912
+ UNITY_INT8 p0[] = {1, 8, 36, -2};
1913
+ UNITY_INT8 p1[] = {1, 8, 36, 2};
1914
+
1915
+ EXPECT_ABORT_BEGIN
1916
+ TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p1, 4);
1917
+ VERIFY_FAILS_END
1918
+ }
1919
+
1920
+ void testEqualInt8EachEqual(void)
1921
+ {
1922
+ UNITY_INT8 p0[] = {1, 1, 1, 1};
1923
+ UNITY_INT8 p1[] = {117, 117, 117, -2};
1924
+ UNITY_INT8 p2[] = {-1, -1, 117, 2};
1925
+ UNITY_INT8 p3[] = {1, 50, 60, 70};
1926
+
1927
+ TEST_ASSERT_EACH_EQUAL_INT8(1, p0, 1);
1928
+ TEST_ASSERT_EACH_EQUAL_INT8(1, p0, 4);
1929
+ TEST_ASSERT_EACH_EQUAL_INT8(117, p1, 3);
1930
+ TEST_ASSERT_EACH_EQUAL_INT8(-1, p2, 2);
1931
+ TEST_ASSERT_EACH_EQUAL_INT8(1, p3, 1);
1932
+ }
1933
+
1934
+ void testNotEqualInt8EachEqual(void)
1935
+ {
1936
+ UNITY_INT8 p0[] = {1, 8, 36, -2};
1937
+
1938
+ EXPECT_ABORT_BEGIN
1939
+ TEST_ASSERT_EACH_EQUAL_INT8(1, p0, 2);
1940
+ VERIFY_FAILS_END
1941
+ }
1942
+
1943
+ void testEqualCHARArrays(void)
1944
+ {
1945
+ char p0[] = {1, 8, 117, -2};
1946
+ char p1[] = {1, 8, 117, -2};
1947
+ char p2[] = {1, 8, 117, 2};
1948
+ char p3[] = {1, 50, 60, 70};
1949
+
1950
+ TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p0, 1);
1951
+ TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p0, 4);
1952
+ TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p1, 4);
1953
+ TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p2, 3);
1954
+ TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p3, 1);
1955
+ }
1956
+
1957
+ void testNotEqualCHARArrays(void)
1958
+ {
1959
+ char p0[] = {1, 8, 36, -2};
1960
+ char p1[] = {1, 8, 36, 2};
1961
+
1962
+ EXPECT_ABORT_BEGIN
1963
+ TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p1, 4);
1964
+ VERIFY_FAILS_END
1965
+ }
1966
+
1967
+ void testEqualCHAREachEqual(void)
1968
+ {
1969
+ char p0[] = {1, 1, 1, 1};
1970
+ char p1[] = {117, 117, 117, -2};
1971
+ char p2[] = {-1, -1, 117, 2};
1972
+ char p3[] = {1, 50, 60, 70};
1973
+
1974
+ TEST_ASSERT_EACH_EQUAL_CHAR(1, p0, 1);
1975
+ TEST_ASSERT_EACH_EQUAL_CHAR(1, p0, 4);
1976
+ TEST_ASSERT_EACH_EQUAL_CHAR(117, p1, 3);
1977
+ TEST_ASSERT_EACH_EQUAL_CHAR(-1, p2, 2);
1978
+ TEST_ASSERT_EACH_EQUAL_CHAR(1, p3, 1);
1979
+ }
1980
+
1981
+ void testNotEqualCHAREachEqual(void)
1982
+ {
1983
+ char p0[] = {1, 8, 36, -2};
1984
+
1985
+ EXPECT_ABORT_BEGIN
1986
+ TEST_ASSERT_EACH_EQUAL_CHAR(1, p0, 2);
1987
+ VERIFY_FAILS_END
1988
+ }
1989
+
1990
+ void testEqualUIntArrays(void)
1991
+ {
1992
+ unsigned int p0[] = {1, 8, 987, 65132u};
1993
+ unsigned int p1[] = {1, 8, 987, 65132u};
1994
+ unsigned int p2[] = {1, 8, 987, 2};
1995
+ unsigned int p3[] = {1, 500, 600, 700};
1996
+
1997
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p0, 1);
1998
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p0, 4);
1999
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
2000
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p2, 3);
2001
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p3, 1);
2002
+ }
2003
+
2004
+ void testNotEqualUIntArrays1(void)
2005
+ {
2006
+ unsigned int p0[] = {1, 8, 987, 65132u};
2007
+ unsigned int p1[] = {1, 8, 987, 65131u};
2008
+
2009
+ EXPECT_ABORT_BEGIN
2010
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
2011
+ VERIFY_FAILS_END
2012
+ }
2013
+
2014
+ void testNotEqualUIntArrays2(void)
2015
+ {
2016
+ unsigned int p0[] = {1, 8, 987, 65132u};
2017
+ unsigned int p1[] = {2, 8, 987, 65132u};
2018
+
2019
+ EXPECT_ABORT_BEGIN
2020
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
2021
+ VERIFY_FAILS_END
2022
+ }
2023
+
2024
+ void testNotEqualUIntArrays3(void)
2025
+ {
2026
+ unsigned int p0[] = {1, 8, 987, 65132u};
2027
+ unsigned int p1[] = {1, 8, 986, 65132u};
2028
+
2029
+ EXPECT_ABORT_BEGIN
2030
+ TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
2031
+ VERIFY_FAILS_END
2032
+ }
2033
+
2034
+ void testEqualUIntEachEqual(void)
2035
+ {
2036
+ unsigned int p0[] = {1, 1, 1, 1};
2037
+ unsigned int p1[] = {65132u, 65132u, 65132u, 65132u};
2038
+ unsigned int p2[] = {8, 8, 987, 2};
2039
+ unsigned int p3[] = {1, 500, 600, 700};
2040
+
2041
+ TEST_ASSERT_EACH_EQUAL_UINT(1, p0, 1);
2042
+ TEST_ASSERT_EACH_EQUAL_UINT(1, p0, 4);
2043
+ TEST_ASSERT_EACH_EQUAL_UINT(65132u, p1, 4);
2044
+ TEST_ASSERT_EACH_EQUAL_UINT(8, p2, 2);
2045
+ TEST_ASSERT_EACH_EQUAL_UINT(1, p3, 1);
2046
+ }
2047
+
2048
+ void testNotEqualUIntEachEqual1(void)
2049
+ {
2050
+ unsigned int p0[] = {1, 65132u, 65132u, 65132u};
2051
+
2052
+ EXPECT_ABORT_BEGIN
2053
+ TEST_ASSERT_EACH_EQUAL_UINT(65132u, p0, 4);
2054
+ VERIFY_FAILS_END
2055
+ }
2056
+
2057
+ void testNotEqualUIntEachEqual2(void)
2058
+ {
2059
+ unsigned int p0[] = {987, 8, 987, 987};
2060
+
2061
+ EXPECT_ABORT_BEGIN
2062
+ TEST_ASSERT_EACH_EQUAL_UINT(987, p0, 4);
2063
+ VERIFY_FAILS_END
2064
+ }
2065
+
2066
+ void testNotEqualUIntEachEqual3(void)
2067
+ {
2068
+ unsigned int p0[] = {1, 1, 1, 65132u};
2069
+
2070
+ EXPECT_ABORT_BEGIN
2071
+ TEST_ASSERT_EACH_EQUAL_UINT(1, p0, 4);
2072
+ VERIFY_FAILS_END
2073
+ }
2074
+
2075
+ void testEqualInt16Arrays(void)
2076
+ {
2077
+ UNITY_INT16 p0[] = {1, 8, 117, 3};
2078
+ UNITY_INT16 p1[] = {1, 8, 117, 3};
2079
+ UNITY_INT16 p2[] = {1, 8, 117, 2};
2080
+ UNITY_INT16 p3[] = {1, 50, 60, 70};
2081
+
2082
+ TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p0, 1);
2083
+ TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p0, 4);
2084
+ TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p1, 4);
2085
+ TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p2, 3);
2086
+ TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p3, 1);
2087
+ }
2088
+
2089
+ void testNotEqualInt16Arrays(void)
2090
+ {
2091
+ UNITY_INT16 p0[] = {1, 8, 127, 3};
2092
+ UNITY_INT16 p1[] = {1, 8, 127, 2};
2093
+
2094
+ EXPECT_ABORT_BEGIN
2095
+ TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p1, 4);
2096
+ VERIFY_FAILS_END
2097
+ }
2098
+
2099
+ void testEqualInt16EachEqual(void)
2100
+ {
2101
+ UNITY_INT16 p0[] = {1, 1, 1, 1};
2102
+ UNITY_INT16 p1[] = {32111, 32111, 32111, 3};
2103
+ UNITY_INT16 p2[] = {-1, -1, -1, 2};
2104
+ UNITY_INT16 p3[] = {1, 50, 60, 70};
2105
+
2106
+ TEST_ASSERT_EACH_EQUAL_INT16(1, p0, 1);
2107
+ TEST_ASSERT_EACH_EQUAL_INT16(1, p0, 4);
2108
+ TEST_ASSERT_EACH_EQUAL_INT16(32111, p1, 3);
2109
+ TEST_ASSERT_EACH_EQUAL_INT16(-1, p2, 3);
2110
+ TEST_ASSERT_EACH_EQUAL_INT16(1, p3, 1);
2111
+ }
2112
+
2113
+ void testNotEqualInt16EachEqual(void)
2114
+ {
2115
+ UNITY_INT16 p0[] = {127, 127, 127, 3};
2116
+
2117
+ EXPECT_ABORT_BEGIN
2118
+ TEST_ASSERT_EACH_EQUAL_INT16(127, p0, 4);
2119
+ VERIFY_FAILS_END
2120
+ }
2121
+
2122
+ void testEqualInt32Arrays(void)
2123
+ {
2124
+ UNITY_INT32 p0[] = {1, 8, 117, 3};
2125
+ UNITY_INT32 p1[] = {1, 8, 117, 3};
2126
+ UNITY_INT32 p2[] = {1, 8, 117, 2};
2127
+ UNITY_INT32 p3[] = {1, 50, 60, 70};
2128
+
2129
+ TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p0, 1);
2130
+ TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p0, 4);
2131
+ TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p1, 4);
2132
+ TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p2, 3);
2133
+ TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p3, 1);
2134
+ }
2135
+
2136
+ void testNotEqualInt32Arrays(void)
2137
+ {
2138
+ UNITY_INT32 p0[] = {1, 8, 127, 3};
2139
+ UNITY_INT32 p1[] = {1, 8, 127, 2};
2140
+
2141
+ EXPECT_ABORT_BEGIN
2142
+ TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p1, 4);
2143
+ VERIFY_FAILS_END
2144
+ }
2145
+
2146
+ void testEqualInt32EachEqual(void)
2147
+ {
2148
+ UNITY_INT32 p0[] = {8, 8, 8, 8};
2149
+ UNITY_INT32 p1[] = {65537, 65537, 65537, 65537};
2150
+ UNITY_INT32 p2[] = {-3, -3, -3, 2};
2151
+ UNITY_INT32 p3[] = {1, 50, 60, 70};
2152
+
2153
+ TEST_ASSERT_EACH_EQUAL_INT32(8, p0, 1);
2154
+ TEST_ASSERT_EACH_EQUAL_INT32(8, p0, 4);
2155
+ TEST_ASSERT_EACH_EQUAL_INT32(65537, p1, 4);
2156
+ TEST_ASSERT_EACH_EQUAL_INT32(-3, p2, 3);
2157
+ TEST_ASSERT_EACH_EQUAL_INT32(1, p3, 1);
2158
+ }
2159
+
2160
+ void testNotEqualInt32EachEqual(void)
2161
+ {
2162
+ UNITY_INT32 p0[] = {127, 8, 127, 127};
2163
+
2164
+ EXPECT_ABORT_BEGIN
2165
+ TEST_ASSERT_EACH_EQUAL_INT32(127, p0, 4);
2166
+ VERIFY_FAILS_END
2167
+ }
2168
+
2169
+ void testEqualUINT8Arrays(void)
2170
+ {
2171
+ UNITY_UINT8 p0[] = {1, 8, 100, 127};
2172
+ UNITY_UINT8 p1[] = {1, 8, 100, 127};
2173
+ UNITY_UINT8 p2[] = {1, 8, 100, 2};
2174
+ UNITY_UINT8 p3[] = {1, 50, 60, 70};
2175
+
2176
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p0, 1);
2177
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p0, 4);
2178
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
2179
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p2, 3);
2180
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p3, 1);
2181
+ }
2182
+
2183
+ void testNotEqualUINT8Arrays1(void)
2184
+ {
2185
+ unsigned char p0[] = {1, 8, 100, 127u};
2186
+ unsigned char p1[] = {1, 8, 100, 255u};
2187
+
2188
+ EXPECT_ABORT_BEGIN
2189
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
2190
+ VERIFY_FAILS_END
2191
+ }
2192
+
2193
+ void testNotEqualUINT8Arrays2(void)
2194
+ {
2195
+ unsigned char p0[] = {1, 8, 100, 127u};
2196
+ unsigned char p1[] = {1, 8, 100, 255u};
2197
+
2198
+ EXPECT_ABORT_BEGIN
2199
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
2200
+ VERIFY_FAILS_END
2201
+ }
2202
+
2203
+ void testNotEqualUINT8Arrays3(void)
2204
+ {
2205
+ unsigned char p0[] = {1, 8, 100, 127u};
2206
+ unsigned char p1[] = {1, 8, 100, 255u};
2207
+
2208
+ EXPECT_ABORT_BEGIN
2209
+ TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
2210
+ VERIFY_FAILS_END
2211
+ }
2212
+
2213
+
2214
+ void testEqualUINT16Arrays(void)
2215
+ {
2216
+ unsigned short p0[] = {1, 8, 987, 65132u};
2217
+ unsigned short p1[] = {1, 8, 987, 65132u};
2218
+ unsigned short p2[] = {1, 8, 987, 2};
2219
+ unsigned short p3[] = {1, 500, 600, 700};
2220
+
2221
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p0, 1);
2222
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p0, 4);
2223
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
2224
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p2, 3);
2225
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p3, 1);
2226
+ }
2227
+
2228
+ void testNotEqualUINT16Arrays1(void)
2229
+ {
2230
+ unsigned short p0[] = {1, 8, 987, 65132u};
2231
+ unsigned short p1[] = {1, 8, 987, 65131u};
2232
+
2233
+ EXPECT_ABORT_BEGIN
2234
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
2235
+ VERIFY_FAILS_END
2236
+ }
2237
+
2238
+ void testNotEqualUINT16Arrays2(void)
2239
+ {
2240
+ unsigned short p0[] = {1, 8, 987, 65132u};
2241
+ unsigned short p1[] = {2, 8, 987, 65132u};
2242
+
2243
+ EXPECT_ABORT_BEGIN
2244
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
2245
+ VERIFY_FAILS_END
2246
+ }
2247
+
2248
+ void testNotEqualUINT16Arrays3(void)
2249
+ {
2250
+ unsigned short p0[] = {1, 8, 987, 65132u};
2251
+ unsigned short p1[] = {1, 8, 986, 65132u};
2252
+
2253
+ EXPECT_ABORT_BEGIN
2254
+ TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
2255
+ VERIFY_FAILS_END
2256
+ }
2257
+
2258
+ void testEqualUINT32Arrays(void)
2259
+ {
2260
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2261
+ UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
2262
+ UNITY_UINT32 p2[] = {1, 8, 987, 2};
2263
+ UNITY_UINT32 p3[] = {1, 500, 600, 700};
2264
+
2265
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p0, 1);
2266
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p0, 4);
2267
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
2268
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p2, 3);
2269
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p3, 1);
2270
+ }
2271
+
2272
+ void testNotEqualUINT32Arrays1(void)
2273
+ {
2274
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2275
+ UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
2276
+
2277
+ EXPECT_ABORT_BEGIN
2278
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
2279
+ VERIFY_FAILS_END
2280
+ }
2281
+
2282
+ void testNotEqualUINT32Arrays2(void)
2283
+ {
2284
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2285
+ UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
2286
+
2287
+ EXPECT_ABORT_BEGIN
2288
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
2289
+ VERIFY_FAILS_END
2290
+ }
2291
+
2292
+ void testNotEqualUINT32Arrays3(void)
2293
+ {
2294
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2295
+ UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
2296
+
2297
+ EXPECT_ABORT_BEGIN
2298
+ TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
2299
+ VERIFY_FAILS_END
2300
+ }
2301
+
2302
+ void testEqualHEXArrays(void)
2303
+ {
2304
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2305
+ UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
2306
+ UNITY_UINT32 p2[] = {1, 8, 987, 2};
2307
+ UNITY_UINT32 p3[] = {1, 500, 600, 700};
2308
+
2309
+ TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p0, 1);
2310
+ TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p0, 4);
2311
+ TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p1, 4);
2312
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p2, 3);
2313
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p3, 1);
2314
+ }
2315
+
2316
+ void testNotEqualHEXArrays1(void)
2317
+ {
2318
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2319
+ UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
2320
+
2321
+ EXPECT_ABORT_BEGIN
2322
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
2323
+ VERIFY_FAILS_END
2324
+ }
2325
+
2326
+ void testNotEqualHEXArrays2(void)
2327
+ {
2328
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2329
+ UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
2330
+
2331
+ EXPECT_ABORT_BEGIN
2332
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
2333
+ VERIFY_FAILS_END
2334
+ }
2335
+
2336
+ void testNotEqualHEXArrays3(void)
2337
+ {
2338
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2339
+ UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
2340
+
2341
+ EXPECT_ABORT_BEGIN
2342
+ TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p1, 4);
2343
+ VERIFY_FAILS_END
2344
+ }
2345
+
2346
+ void testEqualHEX32Arrays(void)
2347
+ {
2348
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2349
+ UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
2350
+ UNITY_UINT32 p2[] = {1, 8, 987, 2};
2351
+ UNITY_UINT32 p3[] = {1, 500, 600, 700};
2352
+
2353
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p0, 1);
2354
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p0, 4);
2355
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
2356
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p2, 3);
2357
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p3, 1);
2358
+ }
2359
+
2360
+ void testNotEqualHEX32Arrays1(void)
2361
+ {
2362
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2363
+ UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
2364
+
2365
+ EXPECT_ABORT_BEGIN
2366
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
2367
+ VERIFY_FAILS_END
2368
+ }
2369
+
2370
+ void testNotEqualHEX32Arrays2(void)
2371
+ {
2372
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2373
+ UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
2374
+
2375
+ EXPECT_ABORT_BEGIN
2376
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
2377
+ VERIFY_FAILS_END
2378
+ }
2379
+
2380
+ void testNotEqualHEX32Arrays3(void)
2381
+ {
2382
+ UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
2383
+ UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
2384
+
2385
+ EXPECT_ABORT_BEGIN
2386
+ TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
2387
+ VERIFY_FAILS_END
2388
+ }
2389
+
2390
+ void testEqualHEX16Arrays(void)
2391
+ {
2392
+ unsigned short p0[] = {1, 8, 987, 65132u};
2393
+ unsigned short p1[] = {1, 8, 987, 65132u};
2394
+ unsigned short p2[] = {1, 8, 987, 2};
2395
+ unsigned short p3[] = {1, 500, 600, 700};
2396
+
2397
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p0, 1);
2398
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p0, 4);
2399
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
2400
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p2, 3);
2401
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p3, 1);
2402
+ }
2403
+
2404
+ void testNotEqualHEX16Arrays1(void)
2405
+ {
2406
+ unsigned short p0[] = {1, 8, 987, 65132u};
2407
+ unsigned short p1[] = {1, 8, 987, 65131u};
2408
+
2409
+ EXPECT_ABORT_BEGIN
2410
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
2411
+ VERIFY_FAILS_END
2412
+ }
2413
+
2414
+ void testNotEqualHEX16Arrays2(void)
2415
+ {
2416
+ unsigned short p0[] = {1, 8, 987, 65132u};
2417
+ unsigned short p1[] = {2, 8, 987, 65132u};
2418
+
2419
+ EXPECT_ABORT_BEGIN
2420
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
2421
+ VERIFY_FAILS_END
2422
+ }
2423
+
2424
+ void testNotEqualHEX16Arrays3(void)
2425
+ {
2426
+ unsigned short p0[] = {1, 8, 987, 65132u};
2427
+ unsigned short p1[] = {1, 8, 986, 65132u};
2428
+
2429
+ EXPECT_ABORT_BEGIN
2430
+ TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
2431
+ VERIFY_FAILS_END
2432
+ }
2433
+
2434
+ void testEqualHEX8Arrays(void)
2435
+ {
2436
+ unsigned char p0[] = {1, 8, 254u, 123};
2437
+ unsigned char p1[] = {1, 8, 254u, 123};
2438
+ unsigned char p2[] = {1, 8, 254u, 2};
2439
+ unsigned char p3[] = {1, 23, 25, 26};
2440
+
2441
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p0, 1);
2442
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p0, 4);
2443
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
2444
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p2, 3);
2445
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p3, 1);
2446
+ }
2447
+
2448
+ void testNotEqualHEX8Arrays1(void)
2449
+ {
2450
+ unsigned char p0[] = {1, 8, 254u, 253u};
2451
+ unsigned char p1[] = {1, 8, 254u, 252u};
2452
+
2453
+ EXPECT_ABORT_BEGIN
2454
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
2455
+ VERIFY_FAILS_END
2456
+ }
2457
+
2458
+ void testNotEqualHEX8Arrays2(void)
2459
+ {
2460
+ unsigned char p0[] = {1, 8, 254u, 253u};
2461
+ unsigned char p1[] = {2, 8, 254u, 253u};
2462
+
2463
+ EXPECT_ABORT_BEGIN
2464
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
2465
+ VERIFY_FAILS_END
2466
+ }
2467
+
2468
+ void testNotEqualHEX8Arrays3(void)
2469
+ {
2470
+ unsigned char p0[] = {1, 8, 254u, 253u};
2471
+ unsigned char p1[] = {1, 8, 255u, 253u};
2472
+
2473
+ EXPECT_ABORT_BEGIN
2474
+ TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
2475
+ VERIFY_FAILS_END
2476
+ }
2477
+
2478
+ void testEqualUINT8EachEqual(void)
2479
+ {
2480
+ UNITY_UINT8 p0[] = {127u, 127u, 127u, 127u};
2481
+ UNITY_UINT8 p1[] = {1u, 1u, 1u, 1u};
2482
+ UNITY_UINT8 p2[] = {128u, 128u, 128u, 2u};
2483
+ UNITY_UINT8 p3[] = {1u, 50u, 60u, 70u};
2484
+
2485
+ TEST_ASSERT_EACH_EQUAL_UINT8(127u, p0, 1);
2486
+ TEST_ASSERT_EACH_EQUAL_UINT8(127u, p0, 4);
2487
+ TEST_ASSERT_EACH_EQUAL_UINT8(1u, p1, 4);
2488
+ TEST_ASSERT_EACH_EQUAL_UINT8(128u, p2, 3);
2489
+ TEST_ASSERT_EACH_EQUAL_UINT8(1u, p3, 1);
2490
+ }
2491
+
2492
+ void testNotEqualUINT8EachEqual1(void)
2493
+ {
2494
+ unsigned char p0[] = {127u, 127u, 128u, 127u};
2495
+
2496
+ EXPECT_ABORT_BEGIN
2497
+ TEST_ASSERT_EACH_EQUAL_UINT8(127u, p0, 4);
2498
+ VERIFY_FAILS_END
2499
+ }
2500
+
2501
+ void testNotEqualUINT8EachEqual2(void)
2502
+ {
2503
+ unsigned char p0[] = {1, 1, 1, 127u};
2504
+
2505
+ EXPECT_ABORT_BEGIN
2506
+ TEST_ASSERT_EACH_EQUAL_UINT8(1, p0, 4);
2507
+ VERIFY_FAILS_END
2508
+ }
2509
+
2510
+ void testNotEqualUINT8EachEqual3(void)
2511
+ {
2512
+ unsigned char p0[] = {54u, 55u, 55u, 55u};
2513
+
2514
+ EXPECT_ABORT_BEGIN
2515
+ TEST_ASSERT_EACH_EQUAL_UINT8(55u, p0, 4);
2516
+ VERIFY_FAILS_END
2517
+ }
2518
+
2519
+ void testEqualUINT16EachEqual(void)
2520
+ {
2521
+ unsigned short p0[] = {65132u, 65132u, 65132u, 65132u};
2522
+ unsigned short p1[] = {987, 987, 987, 987};
2523
+ unsigned short p2[] = {1, 1, 1, 2};
2524
+ unsigned short p3[] = {1, 500, 600, 700};
2525
+
2526
+ TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 1);
2527
+ TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
2528
+ TEST_ASSERT_EACH_EQUAL_UINT16(987, p1, 4);
2529
+ TEST_ASSERT_EACH_EQUAL_UINT16(1, p2, 3);
2530
+ TEST_ASSERT_EACH_EQUAL_UINT16(1, p3, 1);
2531
+ }
2532
+
2533
+ void testNotEqualUINT16EachEqual1(void)
2534
+ {
2535
+ unsigned short p0[] = {1, 65132u, 65132u, 65132u};
2536
+
2537
+ EXPECT_ABORT_BEGIN
2538
+ TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
2539
+ VERIFY_FAILS_END
2540
+ }
2541
+
2542
+ void testNotEqualUINT16EachEqual2(void)
2543
+ {
2544
+ unsigned short p0[] = {65132u, 65132u, 987, 65132u};
2545
+
2546
+ EXPECT_ABORT_BEGIN
2547
+ TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
2548
+ VERIFY_FAILS_END
2549
+ }
2550
+
2551
+ void testNotEqualUINT16EachEqual3(void)
2552
+ {
2553
+ unsigned short p0[] = {65132u, 65132u, 65132u, 65133u};
2554
+
2555
+ EXPECT_ABORT_BEGIN
2556
+ TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
2557
+ VERIFY_FAILS_END
2558
+ }
2559
+
2560
+ void testEqualUINT32EachEqual(void)
2561
+ {
2562
+ UNITY_UINT32 p0[] = {65132u, 65132u, 65132u, 65132u};
2563
+ UNITY_UINT32 p1[] = {987, 987, 987, 987};
2564
+ UNITY_UINT32 p2[] = {8, 8, 8, 2};
2565
+ UNITY_UINT32 p3[] = {1, 500, 600, 700};
2566
+
2567
+ TEST_ASSERT_EACH_EQUAL_UINT32(65132u, p0, 1);
2568
+ TEST_ASSERT_EACH_EQUAL_UINT32(65132u, p0, 4);
2569
+ TEST_ASSERT_EACH_EQUAL_UINT32(987, p1, 4);
2570
+ TEST_ASSERT_EACH_EQUAL_UINT32(8, p2, 3);
2571
+ TEST_ASSERT_EACH_EQUAL_UINT32(1, p3, 1);
2572
+ }
2573
+
2574
+ void testNotEqualUINT32EachEqual1(void)
2575
+ {
2576
+ UNITY_UINT32 p0[] = {65132u, 65132u, 987, 65132u};
2577
+
2578
+ EXPECT_ABORT_BEGIN
2579
+ TEST_ASSERT_EACH_EQUAL_UINT32(65132u, p0, 4);
2580
+ VERIFY_FAILS_END
2581
+ }
2582
+
2583
+ void testNotEqualUINT32EachEqual2(void)
2584
+ {
2585
+ UNITY_UINT32 p0[] = {1, 987, 987, 987};
2586
+
2587
+ EXPECT_ABORT_BEGIN
2588
+ TEST_ASSERT_EACH_EQUAL_UINT32(987, p0, 4);
2589
+ VERIFY_FAILS_END
2590
+ }
2591
+
2592
+ void testNotEqualUINT32EachEqual3(void)
2593
+ {
2594
+ UNITY_UINT32 p0[] = {1, 1, 1, 65132u};
2595
+
2596
+ EXPECT_ABORT_BEGIN
2597
+ TEST_ASSERT_EACH_EQUAL_UINT32(1, p0, 4);
2598
+ VERIFY_FAILS_END
2599
+ }
2600
+
2601
+ void testEqualHEXEachEqual(void)
2602
+ {
2603
+ UNITY_UINT32 p0[] = {65132u, 65132u, 65132u, 65132u};
2604
+ UNITY_UINT32 p1[] = {987, 987, 987, 987};
2605
+ UNITY_UINT32 p2[] = {8, 8, 8, 2};
2606
+ UNITY_UINT32 p3[] = {1, 500, 600, 700};
2607
+
2608
+ TEST_ASSERT_EACH_EQUAL_HEX(65132u, p0, 1);
2609
+ TEST_ASSERT_EACH_EQUAL_HEX(65132u, p0, 4);
2610
+ TEST_ASSERT_EACH_EQUAL_HEX(987, p1, 4);
2611
+ TEST_ASSERT_EACH_EQUAL_HEX(8, p2, 3);
2612
+ TEST_ASSERT_EACH_EQUAL_HEX(1, p3, 1);
2613
+ }
2614
+
2615
+ void testNotEqualHEXEachEqual1(void)
2616
+ {
2617
+ UNITY_UINT32 p0[] = {1, 65132u, 65132u, 65132u};
2618
+
2619
+ EXPECT_ABORT_BEGIN
2620
+ TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 4);
2621
+ VERIFY_FAILS_END
2622
+ }
2623
+
2624
+ void testNotEqualHEXEachEqual2(void)
2625
+ {
2626
+ UNITY_UINT32 p0[] = {987, 987, 987, 65132u};
2627
+
2628
+ EXPECT_ABORT_BEGIN
2629
+ TEST_ASSERT_EACH_EQUAL_HEX32(987, p0, 4);
2630
+ VERIFY_FAILS_END
2631
+ }
2632
+
2633
+ void testNotEqualHEXEachEqual3(void)
2634
+ {
2635
+ UNITY_UINT32 p0[] = {8, 8, 987, 8};
2636
+
2637
+ EXPECT_ABORT_BEGIN
2638
+ TEST_ASSERT_EACH_EQUAL_HEX(8, p0, 4);
2639
+ VERIFY_FAILS_END
2640
+ }
2641
+
2642
+ void testEqualHEX32EachEqual(void)
2643
+ {
2644
+ UNITY_UINT32 p0[] = {65132u, 65132u, 65132u, 65132u};
2645
+ UNITY_UINT32 p1[] = {987, 987, 987, 987};
2646
+ UNITY_UINT32 p2[] = {8, 8, 8, 2};
2647
+ UNITY_UINT32 p3[] = {1, 500, 600, 700};
2648
+
2649
+ TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 1);
2650
+ TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 4);
2651
+ TEST_ASSERT_EACH_EQUAL_HEX32(987, p1, 4);
2652
+ TEST_ASSERT_EACH_EQUAL_HEX32(8, p2, 3);
2653
+ TEST_ASSERT_EACH_EQUAL_HEX32(1, p3, 1);
2654
+ }
2655
+
2656
+ void testNotEqualHEX32EachEqual1(void)
2657
+ {
2658
+ UNITY_UINT32 p0[] = {65132u, 8, 65132u, 65132u};
2659
+
2660
+ EXPECT_ABORT_BEGIN
2661
+ TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 4);
2662
+ VERIFY_FAILS_END
2663
+ }
2664
+
2665
+ void testNotEqualHEX32EachEqual2(void)
2666
+ {
2667
+ UNITY_UINT32 p0[] = {1, 987, 987, 987};
2668
+
2669
+ EXPECT_ABORT_BEGIN
2670
+ TEST_ASSERT_EACH_EQUAL_HEX32(987, p0, 4);
2671
+ VERIFY_FAILS_END
2672
+ }
2673
+
2674
+ void testNotEqualHEX32EachEqual3(void)
2675
+ {
2676
+ UNITY_UINT32 p0[] = {8, 8, 8, 65132u};
2677
+
2678
+ EXPECT_ABORT_BEGIN
2679
+ TEST_ASSERT_EACH_EQUAL_HEX32(8, p0, 4);
2680
+ VERIFY_FAILS_END
2681
+ }
2682
+
2683
+ void testEqualHEX16EachEqual(void)
2684
+ {
2685
+ UNITY_UINT16 p0[] = {65132u, 65132u, 65132u, 65132u};
2686
+ UNITY_UINT16 p1[] = {987, 987, 987, 987};
2687
+ UNITY_UINT16 p2[] = {8, 8, 8, 2};
2688
+ UNITY_UINT16 p3[] = {1, 500, 600, 700};
2689
+
2690
+ TEST_ASSERT_EACH_EQUAL_HEX16(65132u, p0, 1);
2691
+ TEST_ASSERT_EACH_EQUAL_HEX16(65132u, p0, 4);
2692
+ TEST_ASSERT_EACH_EQUAL_HEX16(987, p1, 4);
2693
+ TEST_ASSERT_EACH_EQUAL_HEX16(8, p2, 3);
2694
+ TEST_ASSERT_EACH_EQUAL_HEX16(1, p3, 1);
2695
+ }
2696
+
2697
+ void testNotEqualHEX16EachEqual1(void)
2698
+ {
2699
+ unsigned short p0[] = {65132u, 65132u, 987, 65132u};
2700
+
2701
+ EXPECT_ABORT_BEGIN
2702
+ TEST_ASSERT_EACH_EQUAL_HEX16(65132u, p0, 4);
2703
+ VERIFY_FAILS_END
2704
+ }
2705
+
2706
+ void testNotEqualHEX16EachEqual2(void)
2707
+ {
2708
+ unsigned short p0[] = {1, 987, 987, 987};
2709
+
2710
+ EXPECT_ABORT_BEGIN
2711
+ TEST_ASSERT_EACH_EQUAL_HEX16(987, p0, 4);
2712
+ VERIFY_FAILS_END
2713
+ }
2714
+
2715
+ void testNotEqualHEX16EachEqual3(void)
2716
+ {
2717
+ unsigned short p0[] = {8, 8, 8, 65132u};
2718
+
2719
+ EXPECT_ABORT_BEGIN
2720
+ TEST_ASSERT_EACH_EQUAL_HEX16(8, p0, 4);
2721
+ VERIFY_FAILS_END
2722
+ }
2723
+
2724
+ void testEqualHEX8EachEqual(void)
2725
+ {
2726
+ unsigned char p0[] = {254u, 254u, 254u, 254u};
2727
+ unsigned char p1[] = {123, 123, 123, 123};
2728
+ unsigned char p2[] = {8, 8, 8, 2};
2729
+ unsigned char p3[] = {1, 23, 25, 26};
2730
+
2731
+ TEST_ASSERT_EACH_EQUAL_HEX8(254u, p0, 1);
2732
+ TEST_ASSERT_EACH_EQUAL_HEX8(254u, p0, 4);
2733
+ TEST_ASSERT_EACH_EQUAL_HEX8(123, p1, 4);
2734
+ TEST_ASSERT_EACH_EQUAL_HEX8(8, p2, 3);
2735
+ TEST_ASSERT_EACH_EQUAL_HEX8(1, p3, 1);
2736
+ }
2737
+
2738
+ void testNotEqualHEX8EachEqual1(void)
2739
+ {
2740
+ unsigned char p0[] = {253u, 253u, 254u, 253u};
2741
+
2742
+ EXPECT_ABORT_BEGIN
2743
+ TEST_ASSERT_EACH_EQUAL_HEX8(253u, p0, 4);
2744
+ VERIFY_FAILS_END
2745
+ }
2746
+
2747
+ void testNotEqualHEX8EachEqual2(void)
2748
+ {
2749
+ unsigned char p0[] = {254u, 254u, 254u, 253u};
2750
+
2751
+ EXPECT_ABORT_BEGIN
2752
+ TEST_ASSERT_EACH_EQUAL_HEX8(254u, p0, 4);
2753
+ VERIFY_FAILS_END
2754
+ }
2755
+
2756
+ void testNotEqualHEX8EachEqual3(void)
2757
+ {
2758
+ unsigned char p0[] = {1, 8, 8, 8};
2759
+
2760
+ EXPECT_ABORT_BEGIN
2761
+ TEST_ASSERT_EACH_EQUAL_HEX8(8, p0, 4);
2762
+ VERIFY_FAILS_END
2763
+ }
2764
+
2765
+ void testEqualHEX64Arrays(void)
2766
+ {
2767
+ #ifndef UNITY_SUPPORT_64
2768
+ TEST_IGNORE();
2769
+ #else
2770
+ UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
2771
+ UNITY_UINT64 p1[] = {1, 8, 987, 65132u};
2772
+ UNITY_UINT64 p2[] = {1, 8, 987, 2};
2773
+ UNITY_UINT64 p3[] = {1, 500, 600, 700};
2774
+
2775
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p0, 1);
2776
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p0, 4);
2777
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
2778
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p2, 3);
2779
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p3, 1);
2780
+ #endif
2781
+ }
2782
+
2783
+ void testEqualUint64Arrays(void)
2784
+ {
2785
+ #ifndef UNITY_SUPPORT_64
2786
+ TEST_IGNORE();
2787
+ #else
2788
+ UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
2789
+ UNITY_UINT64 p1[] = {1, 8, 987, 65132u};
2790
+ UNITY_UINT64 p2[] = {1, 8, 987, 2};
2791
+ UNITY_UINT64 p3[] = {1, 500, 600, 700};
2792
+
2793
+ TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p0, 1);
2794
+ TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p0, 4);
2795
+ TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p1, 4);
2796
+ TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p2, 3);
2797
+ TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p3, 1);
2798
+ #endif
2799
+ }
2800
+
2801
+ void testEqualInt64Arrays(void)
2802
+ {
2803
+ #ifndef UNITY_SUPPORT_64
2804
+ TEST_IGNORE();
2805
+ #else
2806
+ UNITY_INT64 p0[] = {1, 8, 987, -65132};
2807
+ UNITY_INT64 p1[] = {1, 8, 987, -65132};
2808
+ UNITY_INT64 p2[] = {1, 8, 987, -2};
2809
+ UNITY_INT64 p3[] = {1, 500, 600, 700};
2810
+
2811
+ TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p0, 1);
2812
+ TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p0, 4);
2813
+ TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p1, 4);
2814
+ TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p2, 3);
2815
+ TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p3, 1);
2816
+ #endif
2817
+ }
2818
+
2819
+
2820
+ void testNotEqualHEX64Arrays1(void)
2821
+ {
2822
+ #ifndef UNITY_SUPPORT_64
2823
+ TEST_IGNORE();
2824
+ #else
2825
+ UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
2826
+ UNITY_UINT64 p1[] = {1, 8, 987, 65131u};
2827
+
2828
+ EXPECT_ABORT_BEGIN
2829
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
2830
+ VERIFY_FAILS_END
2831
+ #endif
2832
+ }
2833
+
2834
+ void testNotEqualHEX64Arrays2(void)
2835
+ {
2836
+ #ifndef UNITY_SUPPORT_64
2837
+ TEST_IGNORE();
2838
+ #else
2839
+ UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
2840
+ UNITY_UINT64 p1[] = {2, 8, 987, 65132u};
2841
+
2842
+ EXPECT_ABORT_BEGIN
2843
+ TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
2844
+ VERIFY_FAILS_END
2845
+ #endif
2846
+ }
2847
+
2848
+ void testNotEqualUint64Arrays(void)
2849
+ {
2850
+ #ifndef UNITY_SUPPORT_64
2851
+ TEST_IGNORE();
2852
+ #else
2853
+ UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
2854
+ UNITY_UINT64 p1[] = {1, 8, 987, 65131u};
2855
+
2856
+ EXPECT_ABORT_BEGIN
2857
+ TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p1, 4);
2858
+ VERIFY_FAILS_END
2859
+ #endif
2860
+ }
2861
+
2862
+ void testNotEqualInt64Arrays(void)
2863
+ {
2864
+ #ifndef UNITY_SUPPORT_64
2865
+ TEST_IGNORE();
2866
+ #else
2867
+ UNITY_INT64 p0[] = {1, 8, 987, -65132};
2868
+ UNITY_INT64 p1[] = {1, 8, 987, -65131};
2869
+
2870
+ EXPECT_ABORT_BEGIN
2871
+ TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p1, 4);
2872
+ VERIFY_FAILS_END
2873
+ #endif
2874
+ }