- 07 1月, 2016 2 次提交
-
-
由 jsalling 提交于
Make subtraction result unsigned, change prototype & casts in internals. If "actual - expected" overflowed, it wrapped to a negative number, but would fit in an unsigned type, example is INT_MAX - (-1) = INT_MIN For correctness, 'delta' should be unsigned too. Passing in a negative number always passed. The delta can be between INT_MAX & UINT_MAX.
-
由 jsalling 提交于
Now that the project is using .gitattributes, get rid of CRLF in the repo.
-
- 11 12月, 2015 3 次提交
-
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
- Fixed a big ugly error in the fancy RUN_TEST handler
-
由 Mark VanderVoord 提交于
-
- 08 12月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
- Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME!
-
- 24 11月, 2015 3 次提交
-
-
由 jsalling 提交于
This helps clarity and is more obvious, it looks like a print function
-
由 jsalling 提交于
Delete the { ;} braces and semicolon from UNITY_PRINT_EOL to give it expected behavior: 1) requires a semicolon 2) works in one-liner if-else statements If you need "\r\n" for EOL, define as the following to get the same behavior: do{UNITY_OUTPUT_CHAR('\r'); UNITY_OUTPUT_CHAR('\n');}while(0)
-
由 jsalling 提交于
Unity fixture needs access to this macro to be consistent. Add #ifndef wrapper for easier redefinition on systems that use "\r\n".
-
- 13 11月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
We're going to use the C99 isinf() and isnan() macros wherever possible now. If your compiler doesn't support this, define UNITY_EXCLUDE_MATH_H and it will go back to the old method
-
- 15 10月, 2015 1 次提交
-
-
由 Jeremy Hannon 提交于
Added parentheses around all macro parameters to resolve MISRA 2004 rule 19.10, "in the definition of a function-like macro, each instance of a parameter shall be enclosed in parenthesis" as tested with the IAR EW for 8051 compiler, version 9.20.2. The only questionable change is in "unity_fixture.h" where the nested macro DECLARE_TEST_CASE in RUN_TEST_CASE prevents surrounding params "group" and "name" with parentheses. However, it appears that macro DECLARE_TEST_CASE isn't used elsewhere, so I eliminated DECLARE_TEST_CASE and put its expansion directly in RUN_TEST_CASE. Now the following header files pass rule 19.10: * unity.h * unity_internals.h * unity_fixture.h For my own project, this change to the Unity test framework allows me to include my unit test code to be tested against MISRA rules as well, instead of just production code, to help enforce style and team guidelines.
-
- 18 9月, 2015 1 次提交
-
-
由 Martyn Jago 提交于
-
- 21 7月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
INTPTR_MAX is defined as nothing on some targets (looking at you HP-UX) and therefore these lines would crash. Adding 0 to the check makes these lines always run.
-
- 19 6月, 2015 1 次提交
-
-
由 ThingamaByte, LLC 提交于
-
- 23 4月, 2015 1 次提交
-
-
由 Eivind Tagseth 提交于
Compares two strings until maximum n bytes (i.e. strncmp()).
-
- 16 12月, 2014 1 次提交
-
-
由 Zane D. Purvis 提交于
- `UNITY_WEAK_ATTRIBUTE`, if defined, is placed before declarations of weakly linked symbols. If not manually defined, it will be automatically set to `__attribute__((weak))` on GCC and Clang, except for Clang for Win32. - `UNITY_WEAK_PRAGMA`, if defined, will cause preprocessor to emit `#pragma weak setUp`, etc. Ignored if `UNITY_WEAK_ATTRIBUTE` is defined. - `UNITY_NO_WEAK` undefines both of the above resulting in no weakly linked symbols. Work around for ThrowTheSwitch/Unity#93
-
- 27 10月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
reworked character strings to be an array type so that storage classes are handled better for picky compilers.
-
- 25 10月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
-
- 31 7月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
support tests named spec as well. clean up UnityBegin to make us not have to dig inside it to inject the filename. Add UNITY_OUTPUT_START() and UNITY_OUTPUT_COMPLETE() for future use.
-
- 30 7月, 2014 3 次提交
-
-
由 Mark VanderVoord 提交于
rearranged project to centralize all self-test stuff under test directory. only pull in includes when required.
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
redirect UNITY_POINTER_WIDTH to define at last catchable moment. Update older gcc targets to be fully explicit.
-
- 29 7月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
-
- 23 7月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
- rename the custom FLOAT_TRAIT type because the old name was poor
-
- 22 7月, 2014 4 次提交
-
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
added macros for IS_DETERMINATE and IS_NOT_DETERMINATE
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
- rework to not bother with any of the ever-changing test frameworks in Ruby (sigh) for self-testing - started working on cleaner floating point support. more coming.
-
- 09 7月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
-
- 08 3月, 2014 1 次提交
-
-
由 Mark VanderVoord 提交于
-
- 06 3月, 2014 1 次提交
-
-
由 Anthony Boorsma 提交于
fixed casts in UNITY_TEST_ASSERT_EQUAL_UINT*. Was previously casting to signed variables and then sign extending the value before casting to final uint and was causing errorneous test failures when executed on arm target
-
- 01 3月, 2014 3 次提交
-
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
-
- 23 9月, 2013 1 次提交
-
-
由 Mark VanderVoord 提交于
-
- 17 9月, 2013 1 次提交
-
-
由 Antony Male 提交于
Microchip's XC16 and friends, when used with dsPICs, require that all pointers to memory which could possibly be in EDS space by adorned with __eds__, e.g. __eds__ int* p_int Adding the macro UNITY_PTR_ATTRIBUTE allows Unity's pointers to be decorated with whatever ridiculous attributes the compiler requires.
-
- 30 11月, 2012 1 次提交
-
-
由 Bryan A. Jones 提交于
Document failing approach (sizeof).
-
- 31 10月, 2012 1 次提交
-
-
由 Ross Ryles 提交于
-
- 29 8月, 2012 1 次提交
-
-
由 Alex Rodriguez 提交于
The reason that TEST_ASSERT_xyz_WITHIN_MESSAGE() family of functions doesn't print any message is because is calling a re-use macro from the TEST_ASSERT_xyz_WITHIN() family of functions. Due this two functions in unity.h calls the same function from unity_internals.h, the message is nullified at this point. The issue is fix by passing _message_ arg to the 4th argument of *UnityAssertNumbersWithin()* function.
-
- 28 5月, 2012 1 次提交
-
-
由 mvandervoord 提交于
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@142 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
-