James Browning
e271a76a11
Squash warnings about unhandled enumeration.
2023-07-06 02:23:04 -07:00
Torgny Lyon
91ff8c3ee8
Fix delta cast for UINT8_ARRAY_WITHIN
2023-03-15 19:29:58 +01:00
Dave Hart
40b573a784
Use __attribute__((__noreturn__)) instead of __attribute__((noreturn)) to avoid issue with FreeBSD #define noreturn _Noreturn
2023-03-15 09:11:08 -04:00
Nir Soffer
18482abd9e
Don't install anything when building as subproject
...
When a project is consuming unity as as subproject, unity headers,
static library and pkg config files are installed by `meson install`.
This can be fixed by using `meson install --skip-subprojects`, but this
must be repeated in all the distros packaging a project.
Fixed by disabling install when building as a subproject.
Fixes : #661
2023-02-21 02:28:04 +02:00
Andrew McNulty
44bc9e6dbe
Update Meson build system
...
The following features from the CMake build have been implemented:
* Library version retrieved from unity.h.
* Extension support.
* Library, header, and package configuration file installation.
This commit is entirely based on existing work by Owen Torres.
2023-02-13 17:22:52 +01:00
Henrik Nilsson
3fe84580c8
Avoid cast-qual warnings with const float and double arrays
2023-02-01 08:02:50 +01:00
Mark VanderVoord
5a36b197fb
Merge pull request #644 from AJIOB/implement_array_within_check
...
Adding within API support for float & double arrays
2022-12-29 19:43:58 -05:00
Mark VanderVoord
87dd938d8a
Merge pull request #639 from AJIOB/auto_define_test_case_marco
...
Provide the way for automatically define TEST_CASE & TEST_RANGE macros (Thanks, Alex. Looks great!)
2022-12-06 08:24:19 -05: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
7d2a927082
Adding lost float & double assert entries
...
when they were previously disabled
2022-11-28 18:45:58 +03:00
AJIOB
aed2e62142
Float-double types typo was fixed
2022-11-28 18:30:46 +03:00
AJIOB
9c45c7861b
Adding support for floating point arrays within.
...
Testing newly created API.
2022-11-28 18:28:31 +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
Alex Overchenko
e4085eb8e6
Using default macro for TEST_CASEs define.
...
Improving docs about manual definition.
2022-11-27 14:36:22 +03:00
Alex Overchenko
4d5ed3d68b
Adding possibility for automatically defining
...
TEST_CASE & TEST_RANGE macros
2022-11-27 13:05:13 +03:00
Mark VanderVoord
67ca5c57c9
Merge pull request #556 from erijo/test-range-exclusive-end
...
Add support for TEST_RANGE with exclusive end
2022-11-12 20:46:33 -05:00
Mark VanderVoord
0876c5d853
Merge pull request #629 from jonathangjertsen/printf-long
...
Support long and long long types in TEST_PRINTF
2022-11-12 20:33:13 -05:00
Erik Flodin
563786f97c
Add support for TEST_RANGE with exclusive end
...
If the range is <start, end, step> instead of [start, end, step], the
end value will not be included in the range.
This can be useful if you have a define that defines e.g. the size of
something and you want to use this define as the end value. As the
pre-processor doesn't evalutate expressions (unless you do some macro
magic) you can't specify the range as [0, MY_SIZE - 1, 1]. With this
change you can then instead give the range <0, MY_SIZE, 1>.
2022-10-14 18:51:45 +02:00
Noah Knegt
fc5b33ce71
Fix compiling native when main project is cross-compiling
2022-10-13 15:36:10 +02: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
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