trbenton
ca7a1707c9
Formatting: Replace a stray tab with spaces
2022-06-21 23:38:03 -04:00
Michael Gene Brockus
91d16179b5
Update meson.build
2022-06-19 06:34:23 -07:00
Mark VanderVoord
e54c9787b7
Merge pull request #560 from jonathangjertsen/more-float
...
Add macros for testing inequalities between floats, doubles
2022-05-25 11:04:56 -04:00
Ivan Kravets
be657105e5
Make PROGMEM configurable // Resolve #606 , Resolve #482
2022-04-22 13:31:07 +03:00
Mark VanderVoord
4389bab82e
Support option to specify array length of zero to force pointer comparison.
2022-04-19 17:27:31 -04:00
Mark VanderVoord
0df1d442cb
Rearrange details to always print if given, no matter if another msg added or not.
...
Print output on failures no matter if verbose or not.
Enforce that HEX comparisons are unsigned comparisons.
2022-04-19 16:21:04 -04:00
Mark VanderVoord
8286aaf32c
Merge pull request #603 from AJIOB/fixing_hex16_error
...
Fixing overflow false error detection on 32, 16 & 8 bit arrays withins
2022-03-14 06:47:46 -04:00
Alex Overchenko
79644b6242
Fixing noreturn usage on old Windows SDKs with new MSVC
2022-03-04 16:20:55 +03:00
Alex Overchenko
9db619d6dc
Using C90 style comments
2022-03-04 14:49:29 +03:00
Alex Overchenko
b770a519a0
Fixing overflow false error detection on 32, 16 & 8 bit arrays withins
2022-03-04 14:45:47 +03:00
Alex Overchenko
db3398a5dd
Unity color resetting was fixed for Gitlab CI.
...
Based on escape codes: https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
2022-02-16 14:56:00 +03:00
Jonathan Reichelt Gjertsen
b732fbf1ca
Add LESS_OR_EQUAL and GREATER_OR_EQUAL assertions for doubles and floats
2021-12-03 20:39:55 +01:00
Jonathan Reichelt Gjertsen
2a8f3fe65a
Try to fix C89 incompatibilities in UnityAssertGreaterOrLess(Double|Float)
2021-12-03 19:53:31 +01:00
Jonathan Reichelt Gjertsen
244edf6c16
Add NOT_EQUAL* and NOT_WITHIN* checks for floats and doubles
2021-12-03 19:53:31 +01:00
Jonathan Reichelt Gjertsen
5a3d82bda6
Merge branch 'master' into more-float
2021-12-03 18:23:22 +01:00
Mark VanderVoord
8ba0138600
Merge pull request #544 from farrrb/bugfix/fix-issue-510
...
Bugfix/fix issue 510
2021-12-03 10:58:29 -05:00
Jonathan Reichelt Gjertsen
d06ac64852
Merge remote-tracking branch 'upstream/master' into more-float
...
# Conflicts:
# README.md
# docs/UnityAssertionsReference.md
2021-07-27 01:54:26 +02:00
Mark VanderVoord
2f7406572e
Bump Version
2021-06-18 14:32:54 -04:00
Mark VanderVoord
e44c3b56f7
Adjust how decimal tracking handles to avoid warnings.
2021-06-03 08:51:24 -04:00
Bernhard Breuß
f944b08878
Use stdnoreturn.h for c11 and [[ noreturn ]] for c++11. ThrowTheSwitch#563
2021-06-02 16:56:14 +02:00
druckdev
edfc5ae355
Support UNITY_INCLUDE_EXEC_TIME under Apples OSX
...
The unix way of getting the time works under OSX as well and can be
used.
2021-05-31 12:55:37 +02:00
Jonathan Reichelt Gjertsen
410de1a02b
Add macros for testing inequalities between floats, doubles
2021-05-24 17:02:58 +02:00
Fabian Zahn
fa32e530ba
Remove "error: assuming signed overflow does not occur when reducing constant in comparison [-Werror=strict-overflow]"
2021-02-27 10:49:34 +01:00
Fabian Zahn
7edf9d9ac5
Fix #510 (-Wextra-semi-stmt with clang compiler)
2021-02-27 08:53:53 +01:00
Fabian Zahn
0168ea1541
Enable __attribute__ when __clang__ is definedgit
2021-02-26 18:46:27 +01:00
Mark VanderVoord
0b899aec14
Fix conditional issue in generator script.
...
Bump version.
2021-01-26 08:59:27 -05:00
Mark VanderVoord
fcab680286
Ruby script cleanup.
...
Fix warnings.
Remove 32-bit tests from standard suite because they're not running on most platforms.
2021-01-16 21:03:18 -05:00
Mark VanderVoord
ffb51ecb7e
Switch from Travis to Github Actions.
...
Update year in docs.
2021-01-16 20:05:20 -05:00
Mark VanderVoord
830f77f9ee
Merge pull request #509 from alecoding/issue_507
...
Fix warning for issue #507
2021-01-07 18:08:51 -05:00
Robert Sławomir Kőműves
723b9fee53
Update unity.c
...
UNITY_EXCLUDE_DETAILS caused a compile error here due to UNITY_DETAIL{1,2}_NAME declaration already being skipped.
2020-10-08 00:55:47 +02:00
Michael Brockus
62d0e7d68e
Update meson.build
2020-08-05 21:15:37 -07:00
Alessio Centazzo
8bbfe1f5ac
Fix warning from issue #507
...
UnityFail() and UnityIgnore had the noreturn attribute with long jumps disabled
2020-06-06 08:07:57 -07:00
Connor Newton
b4b1994bd7
Fix TEST_ASSERT_BIT(S)_HIGH testing only lower 32-bits
...
The high/low bits masks for TEST_ASSERT_BIT(S)_HIGH/LOW are created
by casting 0/-1 to UNITY_UINT32. This isn't OK on 64-bit platforms
as it results in a high bits mask of 0x00000000ffffffff instead of
0xffffffffffffffff.
Cast 0/-1 to UNITY_UINT instead.
2020-05-26 12:58:14 +01:00
André Draszik
a6a4e9766d
unity: annotate noreturn APIs (fix Wsuggest-attribute=noreturn warnings)
...
GCC (& Clang) have the notion of pure and const functions [1],
where those attributes are intended to help the optimiser.
Annotate a few APIs here with the appropriate key words, which
also fixes Wsuggest-attribute=noreturn warning, which a
source base might have enabled:
Compiling unity.c...
.../src/unity.c: In function ‘UnityFail’:
.../src/unity.c:1759:6: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
1759 | void UnityFail(const char* msg, const UNITY_LINE_TYPE line)
| ^~~~~~~~~
.../src/unity.c: In function ‘UnityIgnore’:
.../src/unity.c:1796:6: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
1796 | void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line)
| ^~~~~~~~~~~
[1] https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
Signed-off-by: André Draszik <git@andred.net >
2020-05-25 15:49:47 +01:00
André Draszik
9760c4f14f
unity: fix Wswitch-enum warning
...
Compiling a source base / test with Wswitch-enum enabled, gives
the following warning:
../src/unity.c: In function ‘UnityAssertFloatSpecial’:
../src/unity.c:1092:5: warning: enumeration value ‘UNITY_FLOAT_INVALID_TRAIT’ not handled in switch [-Wswitch-enum]
1092 | switch (style)
| ^~~~~~
Fix by adding the missing value to the default (unhandled) case.
Signed-off-by: André Draszik <git@andred.net >
2020-05-25 08:58:37 +01:00
Mark VanderVoord
87f382fbb2
Merge branch 'master' into master
2020-05-04 09:45:03 -04:00
Alari Õis
97f6d55256
c99 support for new RUN_TEST macro
2020-05-04 08:20:19 +03:00
Mark VanderVoord
cf949f45ca
Bump Version
2020-05-03 16:03:07 -04:00
Mark VanderVoord
fd80d514ee
Revert "More elegant RUN_TEST macro"
...
This reverts commit cdfb7e092c .
2020-05-03 08:57:21 -04:00
Mark VanderVoord
9f4b2251de
Merge pull request #493 from VShilenkov/master
...
cmake: update CMake
2020-05-02 14:38:02 -04:00
Alari Õis
cdfb7e092c
More elegant RUN_TEST macro
2020-05-01 08:18:09 +03:00
Vitalii Shylienkov
a2af08c773
project: revert UNITY_VERSION_* to unity.h
2020-04-14 11:02:24 +02:00
Vitalii Shylienkov
2a2a4d19c5
meson: supports version
...
- generate version header
2020-04-13 12:47:07 +02:00
John Lindgren
2485d49d13
Wrap UNITY_TEST_ASSERT in a do ... while(0) block
...
This ensures that constructions like the following work correctly:
if(condition)
TEST_ASSERT(a);
else
TEST_ASSERT(b);
2020-04-09 13:03:16 -04:00
Vitalii Shylienkov
d603ccdc3b
cmake: update CMake
2020-04-09 13:58:45 +02:00
mvandervoord
f61a7ea8e4
Fix Issue #479 (Thanks @cy18)
2020-03-17 16:12:08 -04:00
mvandervoord
99199515fd
Update documentation.
...
Add UNITY_PRINT_TEST_CONTEXT (thanks @jlindgren90 !)
Replaces PR #473
2020-03-17 15:01:46 -04:00
Mark VanderVoord
6a86a83207
Merge pull request #487 from michaelbadcrumble/master
...
Cleaning Meson build support implementation.
2020-03-16 19:55:55 -04:00
mvandervoord
71e77ce6fb
Added NOT-EQUAL int variants.
...
Organized Unit Tests
2020-03-16 18:45:40 -04:00
mvandervoord
bad429428d
Add assertion for checking empty null-terminated arrays. This is particularly useful for check c strings.
2020-03-16 15:04:40 -04:00