James Browning
18c4e93767
Try build Unity w/ -UUNITY_EXCLUDE_FLOAT_PRINT
2025-11-12 04:50:06 -08:00
Roland Marchand
864b4ea554
Convert C++ comments to ANSI C style
2025-09-25 21:22:51 -04:00
ml-physec
25e9af9edd
Update detail-stack implementation after #784
2025-08-07 13:52:40 +02:00
Mark VanderVoord
0bc0fed904
Merge pull request #784 from burakutkuc/fix-assert-uint-overflow
...
fix: Correct UINT max value handling (thanks @burakutkuc!)
2025-07-10 08:35:42 -04:00
burakutkuc
ac52c4182a
fix: Fail when values are equal but equality is not allowed. Handled HEX asserts as unsigned; applied the same unsigned logic across all integer-based comparisons.
2025-06-13 16:25:22 +03:00
Buccno
bcb0746186
fix: Correct UINT max value handling
2025-06-05 11:00:57 +03:00
ml-physec
c359bf37b0
Initial implementation
2025-04-16 19:21:33 +02:00
Mark VanderVoord
1a29024cc7
It's a New Year
2025-01-01 11:46:30 -05:00
Mark VanderVoord
18fb33921f
add strict match option as '-n' again.
...
fix style while I'm at it.
2024-06-12 22:59:08 -04:00
mchernosky
5ff17d6542
Label as static internal functions enabled by UNITY_USE_COMMAND_LINE_ARGS to prevent
...
-Werror=missing-declarations
2024-04-26 12:46:49 -06:00
Mark VanderVoord
671f8d25f1
Update all the boilerplates
2024-03-16 23:15:00 -04:00
Dennis Skinner
3adb5dd7b9
Add FALLTHRU
2023-12-04 14:04:13 -05:00
Dennis Skinner
fcb4e53c36
Update help menu to use mnemonics
2023-12-03 22:07:15 -05:00
Dennis Skinner
985f6e0194
Add help option to test command line args
...
When test binaries are run with unknown options or with the standard
-h option, a help menu will print all available options.
This is much more convenient than having to dig through unity.c to
find every option.
2023-12-02 03:05:33 -05:00
Mark VanderVoord
a1b1600e43
Update change log and known issues.
...
Fix bug with infinity and NaN handling.
2023-11-13 17:03:07 -05:00
Mark VanderVoord
bd32847abf
Merge branch 'master' into platform_matrix
2023-11-08 00:16:40 -05:00
Mark VanderVoord
88069f045c
Fix docs issues.
...
Update scripts to match latest rubocop.
Fix hex length of unity printf feature.
2023-11-07 23:48:48 -05:00
SteveBroshar
7d0bcc892e
use null check instead of pointer compar
2023-10-08 15:47:22 -05:00
cmachida
f3b2de4da2
fix: TEST_PRINTF(): printing 64-bit hex numbers or pointers
2023-08-25 17:19:21 +00:00
James Browning
e271a76a11
Squash warnings about unhandled enumeration.
2023-07-06 02:23:04 -07:00
AJIOB
a9959df958
Returning lost spaces
2022-11-28 20:27:56 +03:00
AJIOB
b2360fa7ca
Adding delta infinity & nan checks & tests
2022-11-28 20:23:36 +03:00
AJIOB
0963e20d0b
Force moving double delta logic to local function
2022-11-28 20:09:06 +03:00
AJIOB
aed2e62142
Float-double types typo was fixed
2022-11-28 18:30:46 +03:00
AJIOB
6567f07f47
Adding possibility for setting relative & absolute
...
floating difference
2022-11-28 18:08:37 +03:00
Jeppe Pihl
50146afb46
Update unity.c
2022-11-28 13:15:55 +01:00
jonath.re@gmail.com
612aec09e8
Support long and long long types in TEST_PRINTF
...
This change helps Unity parse and print correctly in cases where a long
or long long type is passed to TEST_PRINTF.
Example situations:
```C
// With %u:
TEST_PRINTF("%u %d\n", ((1ULL << 63) - 1), 5); // --> prints 11982546 -1 (both arguments incorrect because only 4 of the 8 bytes were read out of the va_list)
// With %llu, UNITY_SUPPORT_64=0
TEST_PRINTF("%llu %d\n", ((1ULL << 63) - 1), 5); // --> prints 4294967295 5 (first argument wrapped, second argument intact)
// With %llu, UNITY_SUPPORT_64=1
TEST_PRINTF("%llu %d\n", ((1ULL << 63) - 1), 5); // --> prints 9223372036854775807 5 (both arguments correct)
```
2022-07-27 02:39:14 +02:00
trbenton
ca7a1707c9
Formatting: Replace a stray tab with spaces
2022-06-21 23:38:03 -04: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
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
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
e44c3b56f7
Adjust how decimal tracking handles to avoid warnings.
2021-06-03 08:51:24 -04: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
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
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
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
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