a1b1600e43
Update change log and known issues.
...
Fix bug with infinity and NaN handling.
2023-11-13 17:03:07 -05:00
710bb58c6a
Allow user-defined TEST_PROTECT & TEST_ABORT macros
...
However rare, this update covers real-world use cases where:
- Unity is used to provide the assertion macros only, and an external
test harness/runner is used for test orchestration/reporting.
- Calling longjmp on a given platform is possible, but has a
platform-specific (or implementation-specific) set of prerequisites,
e.g. privileged access level.
Enable project-specific customisation of TEST_PROTECT and TEST_ABORT
macros.
- Use the user-defined UNITY_TEST_ABORT if available; fall back to
default behaviour otherwise.
- Use the user-defined UNITY_TEST_PROTECT if available; fall back to
default behaviour otherwise.
- These may be defined independently.
2023-09-04 13:36:00 +02:00
5dd2be96fa
Add TEST_MATRIX to docs
2023-07-14 17:04:54 +02:00
30b1a05c33
Fix TEST_CASE description typo
2023-07-08 23:15:15 +03:00
4d64a17027
Documentation improvements
...
* Fixed a broken markdown bulleted list
* Replaced a missing document link (from the original source of this documentation) with a full sentence explaining the relation of `assert()` to static analysis.
* Typographic fixes
* Replaced single and double straight quotes with smart quotes where appropriate
* Replaced three periods with ellipses where appropriate
2023-06-12 09:58:19 -04:00
ae4ab78c47
Merge pull request #551 from pmembrey/add-meson-generator-for-test-runner
...
Enhance meson support so that it can automatically generate a test runner
2023-02-06 14:56:17 -05:00
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
7298f3771c
Change link to wikipedia Assert header file
...
Closes #647
2022-12-12 14:49:53 +01:00
d0e3d73b7d
Merge pull request #640 from AJIOB/docs_param_tests
...
Create documentation for parameterized tests
2022-12-06 08:25:13 -05:00
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
a35af14a27
Actualizing docs
2022-11-29 09:26:29 +03:00
e15b9f7a28
Fixing typo in assertion reference
2022-11-28 13:22:40 +03:00
ad86e15ca5
Adding docs to TEST_RANGE formats.
...
Adding parameterizedDemo tests as an independent file
2022-11-27 16:09:22 +03:00
e4085eb8e6
Using default macro for TEST_CASEs define.
...
Improving docs about manual definition.
2022-11-27 14:36:22 +03:00
cef22753c4
Adding param tests documentation.
...
Describe TEST_CASE logic.
2022-11-27 14:20:03 +03:00
4d5ed3d68b
Adding possibility for automatically defining
...
TEST_CASE & TEST_RANGE macros
2022-11-27 13:05:13 +03:00
f94763d2bc
Merge pull request #587 from mbonesi/patch-1
...
fixed hyperlink text to obtain Ruby
2022-11-12 20:43:19 -05:00
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
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
4389bab82e
Support option to specify array length of zero to force pointer comparison.
2022-04-19 17:27:31 -04:00
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
c0e9a4c185
fixed hyperlink text to obtain Ruby
...
the text was correct but the hyperlink had a problem.
2021-12-10 10:16:45 +01:00
b732fbf1ca
Add LESS_OR_EQUAL and GREATER_OR_EQUAL assertions for doubles and floats
2021-12-03 20:39:55 +01:00
244edf6c16
Add NOT_EQUAL* and NOT_WITHIN* checks for floats and doubles
2021-12-03 19:53:31 +01:00
d06ac64852
Merge remote-tracking branch 'upstream/master' into more-float
...
# Conflicts:
# README.md
# docs/UnityAssertionsReference.md
2021-07-27 01:54:26 +02:00
00a1d02835
Break on sentences instead of column
2021-06-02 23:48:23 +01:00
8b90b51c68
Reference style URLs
2021-06-02 23:13:14 +01:00
d0b5a920bb
markdown conformance
2021-06-02 22:49:03 +01:00
fa5644bd07
Fix typo in UnityHelperScriptsGuide.md
...
An `e` is missing in`suit_setup` in the `my_config.yml`.
2021-06-02 15:38:27 +02:00
410de1a02b
Add macros for testing inequalities between floats, doubles
2021-05-24 17:02:58 +02:00
27ef0eb44e
Fix some formatting errors in the assertions reference
2021-05-24 14:52:24 +02:00
63ea077a29
Add some docs for the Meson generator
2021-04-04 22:14:28 +08:00
66cec22838
Update UnityConfigurationGuide.md
...
Add semi-colon to configuration :)
2021-02-26 07:51:57 +01:00
563b93e5ec
Fix typo in doc
2021-02-10 15:20:03 +01:00
ec31dfacad
Fixed typos in documentation
2020-04-25 07:14:21 +03:00
8c4ae7aacd
clarification in docs ( #468 )
2020-03-18 15:19:35 -04:00
99199515fd
Update documentation.
...
Add UNITY_PRINT_TEST_CONTEXT (thanks @jlindgren90 !)
Replaces PR #473
2020-03-17 15:01:46 -04:00
71e77ce6fb
Added NOT-EQUAL int variants.
...
Organized Unit Tests
2020-03-16 18:45:40 -04:00
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
22a047ebb5
Updated documentation and examples to reflect the TEST_PRINTF function.
2020-02-14 22:45:58 +01:00
354e2b4da6
Added set of assertions for checking CHAR's and CHAR arrays (not as strings)
2019-10-28 16:54:32 -04:00
e1dca8fa48
Add options for different output formats
2019-10-28 12:43:11 -04:00
be87d790c7
Add verifyTest option to go with resetTest.
...
Fix docs.
2019-10-28 10:32:22 -04:00
d16c27b085
- added target for checking ANSI compliance
...
- fixed ANSI (C89) issues, including #418
2019-10-25 10:17:12 -04:00
86b19304ed
Added num_elements parameter to docs for TEST_ASSERT_INTn_ARRAY_WITHIN().
2019-10-25 14:37:00 +11:00
9fdcc2d3ff
Catch up documentation to match these changes.
2019-10-21 14:29:52 -04:00
0000f1e6d2
Add TEST_MESSAGE for outputting messages without aborting a test and _MESSAGE variant to TEST_PASS collection.
2019-07-06 11:02:32 -04:00
bc72eeb211
Merge pull request #425 from farrrb/fix-ti-c55-sizeof
...
TI C55x compatibility patches - removal of sizeof operator from the interfaces
2019-07-05 15:41:41 -04:00
f2d826c7c5
- Added options for how to handle TEST_ASSERT_EQUAL shorthand
...
- Tweak a couple style problems with Ruby scripts.
2019-07-03 15:03:03 -04:00
06ddace18d
Update documentation of "UNITY_POINTER_WIDTH"
2019-05-12 19:44:02 +02:00