1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00
Commit Graph

1372 Commits

Author SHA1 Message Date
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
Mark VanderVoord
0b92f9b960 Merge pull request #643 from jpihl/master
Rely on `stddef.h` from `unity_internals.h`
2022-11-28 07:51:55 -05:00
Mark VanderVoord
ab51657f62 Merge pull request #642 from AJIOB/docs_assertion_fix
Fixing typo in assertion reference
2022-11-28 07:50:42 -05:00
Jeppe Pihl
50146afb46 Update unity.c 2022-11-28 13:15:55 +01:00
Alex Overchenko
e15b9f7a28 Fixing typo in assertion reference 2022-11-28 13:22:40 +03:00
Alex Overchenko
ad86e15ca5 Adding docs to TEST_RANGE formats.
Adding parameterizedDemo tests as an independent file
2022-11-27 16:09:22 +03:00
Alex Overchenko
48d7210644 Fixing CI tests passing 2022-11-27 14:46:34 +03: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
cef22753c4 Adding param tests documentation.
Describe TEST_CASE logic.
2022-11-27 14:20:03 +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
f94763d2bc Merge pull request #587 from mbonesi/patch-1
fixed hyperlink text to obtain Ruby
2022-11-12 20:43:19 -05:00
Mark VanderVoord
303e6ec81a Merge pull request #594 from LeoSebal/dev/python_JUnit_fix
Fixes and features on the JUnit Python conversion script
2022-11-12 20:42:55 -05:00
Mark VanderVoord
7e332fb9a9 Merge pull request #598 from AJIOB/parse_output_color_support
Parse output color & time support with custom test suite name
2022-11-12 20:42:07 -05:00
Mark VanderVoord
568d5f885a Merge pull request #625 from ivankravets/master
Provide custom build configuration for the PlatformIO
2022-11-12 20:34:06 -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
Mark VanderVoord
714bd1fdd3 Merge pull request #633 from RodrigoDornelles/patch-1
fix: add cmake outputs in .gitignore
2022-11-12 20:32:14 -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
Mark VanderVoord
22777c4810 Merge pull request #635 from Westlanderz/bugfix/Cross-compiling-set-native
Fix compiling native when main project is cross-compiling
2022-10-14 10:35:13 -04:00
Mark VanderVoord
5c23fa3c16 Merge pull request #634 from erijo/test-case-space
Improve handling of space in TEST_CASE/RANGE (Thanks @erijo !)
2022-10-14 10:09:41 -04:00
Erik Flodin
76b7e359cc Improve handling of space in TEST_CASE/RANGE
The fix in 285bb6e282 didn't completly fix the issue.
2022-10-13 22:13:03 +02:00
Noah Knegt
fc5b33ce71 Fix compiling native when main project is cross-compiling 2022-10-13 15:36:10 +02:00
Mark VanderVoord
37b61d2be2 Merge pull request #555 from erijo/test-case-space
Ignore space around parameter in TEST_CASE()
2022-10-11 16:25:05 -04:00
Mark VanderVoord
de73f1fcbf Merge pull request #554 from erijo/single-test-range
Make TEST_RANGE handle a single range
2022-10-04 21:57:38 -04:00
RodrigoDornelles
30046e664e remove unityConfig.cmake from .gitignore 2022-09-02 16:03:55 -03:00
RodrigoDornelles
f62ff65f9b fix: add cmake outputs in .gitignore 2022-09-02 15:28:40 -03: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
Ivan Kravets
062e44ebc5 Provide custom build configuration for the PlatformIO 2022-06-27 17:20:22 +00:00
Mark VanderVoord
3852926c00 Merge pull request #624 from trbenton/bugfix/stray-tab
Formatting: Replace a stray tab with spaces
2022-06-22 08:11:50 -04:00
trbenton
ca7a1707c9 Formatting: Replace a stray tab with spaces 2022-06-21 23:38:03 -04:00
Mark VanderVoord
4ee26e4e0d Merge pull request #619 from eli-schwartz/meson-cleanup
Meson cleanup
2022-06-19 15:31:37 -04:00
Eli Schwartz
1b13155244 meson: include the license info in the project definition
This is useful to help convey the usage rights and e.g. generate a
Software Bill of Materials.
2022-06-19 13:49:52 -04:00
Eli Schwartz
0129cf5b11 meson: specify correct minimum versions of Meson
The main project doesn't really have any specific version requirement.
Specify a very low one just in case -- 0.37.0 is old enough to cover
probably any existing use of Meson anywhere in the wild, and
coincidentally is also the version that Meson started adding feature
warnings for, to notify you if you use too-new features.

The example *does* depend on a specific version. It needs 0.55.0 in
order to use subproject wrap dependency fallback instead of the legacy
style of specifying the name of the variable as a fallback. Ensure that
is used.
2022-06-19 13:44:57 -04:00
Eli Schwartz
ae10bd1268 examples: meson: do not use deprecated test naming style
Tests cannot contain a ":", and configuring the example produced the
following warning:

test/test_runners/meson.build:12: DEPRECATION: ":" is not allowed in test name "Running: 01-test-case", it has been replaced with "_"
test/test_runners/meson.build:13: DEPRECATION: ":" is not allowed in test name "Running: 02-test-case", it has been replaced with "_"

In this case, the "running" part is redundant, so remove it.
2022-06-19 13:41:09 -04:00
Mark VanderVoord
57e08575c2 Merge pull request #618 from troglobyte-coder/master
Updating the Meson build scripts
2022-06-19 12:27:18 -04:00
Michael Gene Brockus
193f130aed Update unity.wrap 2022-06-19 06:36:25 -07:00
Michael Gene Brockus
b7b65737e8 Update meson.build 2022-06-19 06:35:43 -07:00
Michael Gene Brockus
91d16179b5 Update meson.build 2022-06-19 06:34:23 -07:00
Michael Gene Brockus
df2ea08157 Update meson.build 2022-06-19 06:33:19 -07:00
Mark VanderVoord
1958b97701 Merge pull request #615 from jhancharler/dev/fixtureReadmeFileTypo
fix wrong filename mentioned in readme for fixtures
2022-06-05 12:55:37 -04:00
Can Caglar
02e0bd5382 fix wrong filename mentioned in readme for fixtures 2022-06-05 14:01:48 +01:00
Mark VanderVoord
782ff32e9d Merge pull request #614 from mjago/master
Fix call to ERB.new to avoid deprecation warnings.
2022-05-28 09:17:36 -04:00
Martyn Jago
5dd3aa40dc Fix call to ERB.new to avoid deprecation warnings.
On later Rubies calling create_run_test() causes the generation of warnings of the following form:

warning: Passing safe_level with the 2nd argument of ERB.new is deprecated...
warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated...

This patch removes the noise.
2022-05-28 12:35:22 +01:00
Mark VanderVoord
b29a4bc360 Merge pull request #613 from mjago/master
Fix broken YAML parsing on later Rubies with Psych >=4.0 (Thanks @mjago !)
2022-05-27 10:30:01 -04:00
Martyn Jago
b44c2dd095 Fix broken YAML parsing on later Rubies with Psych >=4.0
YAML.load is now interpreted as YAML.safe_load, which breaks where the
YAML file contains aliases. If we can assume our yaml files are
trusted (since this a development tool), we can check for the presence
of YAML.unsafe_load and use it instead if it exists.
2022-05-27 15:08:11 +01: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