87 Commits

Author SHA1 Message Date
aaddd1cd80 Add test that will break if the _Unity struct ever changes. 2012-10-03 12:44:02 -04:00
e95f662683 Fix issue \#7 INTx_WITHIN_MESSAGE() macro
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.
2012-08-28 15:06:09 -07:00
51af84a727 adding test cases to complete the testing list 2012-08-27 00:36:51 -04:00
152e78a4a8 - cleaned up pointer support to handle arrays and to give error when you have an illegal configuration
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@135 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-05-14 15:52:52 +00:00
504bf2edee - fixed conditional self-tests
- rolled in DOUBLE support from Mark Vismer (thanks!)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@134 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-05-03 11:05:56 +00:00
7deba78730 - backed out Mike's incorrect changes to generate_test_runner
- made generate_test_runner's two include groups more clearly differentiated
- added negative tests to int16's.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@133 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-28 00:29:20 +00:00
43b4c94f7b - protect against ints that only have differences in higher nibbles that shouldn't be part of comparison
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@130 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-20 11:56:56 +00:00
02f12f7a4c - fixed pretty-printing error with small uint sizes
- added a couple of user-submitted ports

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@119 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-02-18 02:00:29 +00:00
44fa5bef55 - removed TEST_CASE(...) macro from Unity because it's not compatible with a number of compilers. User will need to define it themselves to use it. (it's an empty define anyway)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@117 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-02-04 19:50:49 +00:00
3e472491c9 - added ability to parse fun characters like parenthesis in TEST_CASES
- fixed TEST_CASE error

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@115 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-22 18:53:23 +00:00
aca9892418 - fixed yaml load option
- added option to specify includes as <stdlib.h> so that they will get angle brackets instead of ""

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@114 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-22 18:20:39 +00:00
4e4d4291d6 - updated documentation
- parameterized tests now output parameters as part of message


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@110 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-12-28 15:32:20 +00:00
57178b9295 - tweaked parameterized tests to be C99 standards compliant
- fixed a few bugs in fixtures to get it to pass against our standard compilers
- added extern of OUTPUT_CHAR method to keep compilers from complaining

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@107 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-12-01 01:56:24 +00:00
962ce941df - caught up runner generator script tests
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@105 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-26 22:27:37 +00:00
780c17d017 - updated unity test runner generator to support parameterized tests optionally.
- updated docs to better discuss generator options.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@104 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-26 19:37:22 +00:00
33fa00d518 - added tests for generate_test_runner. other script tests to come
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@97 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-23 02:39:15 +00:00
8177f62867 made unity internally consistent with fail and ignore macros having/not having message parameters
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@87 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-30 22:39:52 +00:00
a9ccd245b0 - added 64 bit support
- organized targets into a subdirectory
- cleaned up testing so floats and 64-bit ints are only tested if enabled


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@85 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-28 01:06:21 +00:00
b8007051b1 - All array asserts now check for NULLs properly and uniformly
- Cleaned up testing

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@79 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 16:42:57 +00:00
cae66a0054 - added special handlers for int and uint types for when it's important that you have the right size (like INT8_ARRAY)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@75 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-09 01:36:55 +00:00
c3f5b23660 - added string array support
- laid foundation for smarter array size handling for integer types

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@74 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-06 23:24:36 +00:00
3fbc034e7d - restored examples to working condition
- restored makefiles to working condition
- updated files to include copyright notice
- fixed bug in string array comparisons
- ignored tests no longer run teardown
- tests failing for uncaught cexceptions now get exception id reported

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@70 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-26 01:10:48 +00:00
12d4d14388 - fixed floating point comparison
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@69 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-18 23:25:32 +00:00
54a924571b - updated color handling by standardizing output
- cleaned up internal types
- added verbose float support when sprintf is available and desirable
- tested float array handling (and fixed a bug! woo!)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@68 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-02 18:11:07 +00:00
4fc9cf594a - added array handling for smaller integer types
- added array handling for floats
- cleaned up filename handling in scripts

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@67 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-30 03:34:09 +00:00
07d2848dd4 - fixed mistake with NULL and NOT_NULL assertions. Added tests to keep that from happening again
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@64 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-20 21:22:28 +00:00
e189a1b332 - cleaned up Unity header file
- added macros to support more combinations
- shrunk code size by reducing functions and macro sizes

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@62 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-20 20:58:46 +00:00
6901c8eb04 - added an "equal" check for floating point (where it checks that floats are within a significant digit of eachother)
- added array support for unknown types (memcompares)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@45 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-11-03 01:15:54 +00:00
15514e7993 added missing 'message' params in _MESSAGE macros; added TEST_ASSERT_NOT_EQUAL
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@43 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-10-08 16:10:43 +00:00
812a71e983 Modified typedefs in order to avoid collisions
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@41 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 03:16:38 +00:00
cb1212f9e2 Added support for 16-bit processors via BUS_WIDTH=16 preprocessor define. Defaults to 32-bit if unspecified.
Updated iar_msp430.yml to use full IAR MSP430 edition and use new BUS-WIDTH define.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@40 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 01:33:47 +00:00
c113a9caa0 * Converted rake to use YML config files for toolchain customization per CMock.
Need to figure out what to do about IAR MSP430

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@24 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-11 14:42:09 +00:00
54eba93094 - support arrays of integers
- fixed bug when reporting problems with large integers
- fixed bug in test suite when checking for expected failures.


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@22 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-10 18:21:21 +00:00
24a56b0c38 - happier with const (and more optimized on some compilers)
- better helper examples
- general purpose memory compare

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@16 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-19 03:30:45 +00:00
12289c3f52 * Updated frame to not require separate pointer initialization
* Updated test runner to protect teardown (just in case someone tries to put ASSERTS in their teardown function)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@13 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-01-26 15:16:38 +00:00
6e2de5e52f * Converted Unity to use setjmp/jongjmp for aborting upon test failures
* Eliminated TEST_WRAP and TEST_WRAP_NO_RETURN, since new abort mechanism eliminates the need to use these
- Updated documentation
- Changed default target to GCC in both Unity test and example project

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@7 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-13 15:39:50 +00:00
720acfbb95 Initial project population
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@1 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-02-07 03:00:54 +00:00