845 Commits

Author SHA1 Message Date
9ef1088eb7 Merge pull request #387 from farrrb/rework-operator-precedence
Added braces to avoid implementation solely based on operator precedence. (Thanks @farrrb ! I love cleanup like this!)
2019-01-30 15:48:50 -05:00
b723c9f250 Added braces to avoid implementation solely based on operator precedence. 2019-01-30 21:26:35 +01:00
d451148907 Merge pull request #386 from teaguecl/teaguecl_example1_bugfix
Fix error in example_1
2019-01-26 07:45:55 -05:00
bc2ab233ee Fix error in example_1 and example_2
This test case had an error in both examples:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode

It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
2019-01-25 21:51:25 -08:00
9d1ffe26d6 Fix error in example_1
This test case had an error:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
which is a value in the list.

The compile option -Wno-misleading-indentation was also added to
remove a compiler warning produced by gcc 7.3.0
2019-01-25 21:22:55 -08:00
38c48704c5 Merge pull request #383 from farrrb/feature-printf
Feature printf (Thanks @farrrb !)
2019-01-25 06:09:20 -05:00
a6e9f85f71 Added examples for the configuration of UnityPrintFormatted and exclusion of <stddef.h> 2019-01-25 07:01:29 +01:00
69cebb5c30 Merge pull request #385 from bluca/c90
Make unity.c compatible with c90
2019-01-24 16:48:07 -05:00
5074a3d8b2 Make unity.c compatible with c90
Avoid declaring the loop variable inside the for statement to keep
compatibility with c90:

unity.c:1408: error: for' loop initial declaration used outside C99 mode
2019-01-24 21:44:34 +00:00
92a345b264 Added documentation and changed all the code examples to backtick (code) blocks. 2019-01-24 20:12:16 +01:00
4f8656f658 Added some documentation for the helper function. 2019-01-24 19:22:01 +01:00
95ccc6edc1 Changed the compiler switch behaviour for printf (default: disabled).
Macro UNITY_EXCLUDE_PRINT_FORMATTED changed to UNITY_INCLUDE_PRINT_FORMATTED.
Enable printf via "-DUNITY_INCLUDE_PRINT_FORMATTED" compiler option.
2019-01-24 18:42:51 +01:00
5918ee0cdf Merge branch 'master' into feature-printf
# Conflicts:
#	src/unity.c
2019-01-24 18:32:07 +01:00
a284984365 Merge pull request #382 from dpostorivo/ifndef-64-runner
Generate runner defines with #ifndef guards
2018-12-21 23:12:59 -05:00
516f7be045 generate runner defines with #ifndef guards 2018-12-21 22:37:11 -05:00
38d8263741 Merge pull request #380 from elliot-gawthrop/test-case-string
Add support for strings in TEST_CASE()
2018-12-11 06:56:47 -05:00
5db2a3dbd9 Add support for strings in TEST_CASE() 2018-12-10 20:53:27 +00:00
f433480f7f Merge pull request #299 from jlindgren90/float-printing
Allow UnityPrintFloat() to print a 7th digit.
2018-11-28 15:27:37 -05:00
8e0f54d23b Merge pull request #375 from jlindgren90/int-min-printing
Fix undefined behavior when printing INT_MIN/INT64_MIN. (Thanks @jlindgren90 !)
2018-11-28 15:23:03 -05:00
d09f4953ff Fix another signed integer overflow. 2018-11-28 15:17:25 -05:00
8a77f48634 Fix undefined behavior when printing INT_MIN/INT64_MIN.
Negating the most-negative signed integer results in overflow, which
is undefined behavior.  Fix this by casting to an unsigned type first
(unsigned overflow is well-defined as it uses modular arithmetic).
2018-11-28 14:45:23 -05:00
39fbd13cae Merge branch 'master' into float-printing 2018-11-28 14:02:41 -05:00
58be52f088 Merge pull request #374 from jlindgren90/rubocop
Fix (most) Rubocop warnings. (Thanks @jlindgren90 !!!!)
2018-11-28 13:42:51 -05:00
5cd1c33b0e Fix uninitialized constant 2018-11-28 13:36:27 -05:00
6b657c6f17 Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
28bf7954f2 Merge pull request #364 from farrrb/fix-issue-360
Fixed an "array index out of bounds violation" in the examples. (Thanks @farrrb )
2018-11-14 06:17:38 -05:00
e8ba63cf7b Merge pull request #370 from danyeaw/license-location
Move license for GitHub detection
2018-11-14 06:09:10 -05:00
100c73d37f Move license for GitHub detection 2018-11-13 21:07:05 -05:00
eab9283a98 Merge pull request #353 from kykrueger/issue-#352-uninitialized-value-warning
Issue #352 uninitialized value warning
2018-11-07 09:22:46 -05:00
7dd21c333e Fix unintended array overrun in example (#360. Thanks @quantum-leaps) 2018-11-02 07:42:47 -04:00
695dd04d53 Merge pull request #365 from Kochise/patch-2
Patch 2 (Thanks, @Kochise !)
2018-10-31 07:13:30 -04:00
27f631aaa8 Merge pull request #366 from Kochise/patch-1
Some cleanup (Thanks, @Kochise !)
2018-10-31 06:48:32 -04:00
50ce8a880a Some cleanup 2018-10-31 11:41:44 +01:00
96127581a0 Some cleanup 2018-10-31 11:30:13 +01:00
be765649f1 Some cleanup 2018-10-31 11:24:37 +01:00
f1100dd19a Added support for %b (bits / binary), %f (float) and %g (double). 2018-10-27 18:21:01 +02:00
b4ab81bbe9 Added first working implementation. 2018-10-27 16:06:38 +02:00
e84cb29acc Fixed an "array index out of bounds violation" in the examples (regarding issue #360). 2018-10-27 11:24:29 +02:00
7d2bf62b7e Merge pull request #363 from Deltrix/patch-1
Changed some text issues (Thanks @Delrix)
2018-10-22 10:42:30 -04:00
01cbce870a Changed some text issues 2018-10-22 15:32:22 +02:00
e4dfeaa14d Merge pull request #362 from meslem12/patch-1
fixed compile error UNITY_PRINT_EXEC_TIME(). Thanks @meslem12 !
2018-10-18 22:58:40 -04:00
7cc3cf478b fixed compile error UNITY_PRINT_EXEC_TIME() 2018-10-18 23:55:38 +02:00
e025b8cd1d Merge pull request #359 from farrrb/fix-include-stddef
Issue #317 - unity.h should include <stddef.h>
2018-10-14 16:24:19 -04:00
e2e549a22f Added include of 'stddef.h' to 'unity_internals.h' if 'UNITY_EXCLUDE_STDDEF_H' is not defined. This adds compiler independent support for the 'NULL' macro. 2018-10-14 14:11:22 +02:00
e0d52d1a79 fix uninitialzed value warning 2018-09-12 17:46:11 +02:00
bfd7828e66 Merge pull request #1 from ThrowTheSwitch/master
Get up to date
2018-09-07 14:10:47 +02:00
9987824da7 Added support to inject "extern C" into runners when generated. 2018-08-09 08:48:08 -04:00
031f3bbe45 Merge pull request #340 from elliot-gawthrop/unit-test-execution-time
Print execution time for each test when verbose mode enabled (Thanks @elliot-gawthrop, @shreyasbharath, and everyone who participated in this one!)
2018-08-08 08:24:46 -04:00
a6a35b78ae Merge pull request #341 from Deryew/master
Fixed some grammar errors on docs (Thanks @Deryew !)
2018-08-08 07:05:47 -04:00
e72dfafd44 Fixed some grammar errors on docs
Fixed grammar errors and some sentences to make it easier to understand
2018-07-30 10:53:02 +08:00