John Van Enk
aac87e01b4
Fully expand Unity struct.
2012-10-04 11:48:36 -07:00
Alex Rodriguez
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
John Van Enk
b7d9d007ce
Merge branch 'master' of github.com:ThrowTheSwitch/Unity
...
Conflicts:
src/unity_internals.h
2012-06-20 20:03:36 -04:00
mvandervoord
91ea65ca12
- I've decided to automatically turn on 64-bit support if the pointers, ints, or longs require it.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@142 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-28 01:07:35 +00:00
mvandervoord
c4f0537c0c
- changed the default handling to always include stdint unless told to exclude it.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@140 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 21:54:53 +00:00
mvandervoord
dbdc603024
- further fixes to pointer auto-detect
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@139 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 21:48:49 +00:00
mvandervoord
c1b954eb9d
- added size auto-detection support from limits.h
...
- fixed error in _INT macro size guessing
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@138 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 20:29:33 +00:00
Scott Vokes
4742b5d77a
Change gcc.yml default to gcc_32.yml (explicitly compile for 32-bit target)
2012-04-27 11:53:12 -04:00
Scott Vokes
d0c3f24f4d
If using UNITY_SUPPORT_64, UNITY_POINTER_WIDTH should default to 64 (not 32).
...
Fixes failing test cases on 64-bit OSX: pointers to local variables were
being converted to U32s before comparison.
2012-04-27 10:31:54 -04:00
mvandervoord
d0d5ec5d75
- unity_test_summary script callable from command line again
...
- fixed obj_file sorting in rakefiles
- gave better anchors for gcc to grab on test pass/fail by breaking them out as functions
- fixed minor type issues
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@137 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-01-02 21:38:36 +00:00
mvandervoord
3a82e1eeab
- fixed summarizer to handle more generic input
...
- ignore comments in test parser
- fixed a couple bugs in 16-bit support
- fixed minor compiler errors for less lenient compilers
- fixed error in docs.
- renamed link to link_it in rakefiles to avoid collision in new versions of rake
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@136 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-10-11 02:40:04 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
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
mvandervoord
4e4046a897
- updated memory assert to be more verbose (and dropped memcmp)
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@127 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-01 02:09:30 +00:00
mkarlesky
bc1674df09
added some barely needed comments to UnitySizeMask
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@126 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-03-22 23:45:43 +00:00
mvandervoord
0195ea4e5a
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@125 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-03-22 18:03:36 +00:00
mvandervoord
3ef64ee047
- replacing non-universal method of masking word sizes
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@123 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-03-04 19:01:27 +00:00
mvandervoord
e06aa48bca
- fixed minor bug which was causing warnings on some compilers
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@121 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-03-03 12:15:11 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
6787ada5ad
- NOTE: now you need to define UNITY_SUPPORT_TEST_CASES to use TEST_CASE. This is to avoid problems with compilers that don't support varargs in macros.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@116 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-24 12:57:50 +00:00
mvandervoord
4b8d521247
- version file is just going to have major and minor... leave build for the other file (which will hopefully be automatic someday).
...
- only extern the output function when it's custom.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@113 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-14 00:54:12 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
f2ce354f99
- cleaned up test runner problems. again getting ready to support parameterized tests
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@103 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 16:15:09 +00:00
mvandervoord
7ecafcbe5c
- revert last change until I figure out what I screwed up
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@102 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 15:35:57 +00:00
mvandervoord
953b55c7e3
- made RUN_TEST so that it doesn't require a custom runTest by default
...
- updated generator to lay simple foundation for parameterized test support
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@101 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 14:53:34 +00:00
mvandervoord
d1bd6e29cc
- dropped lf in output
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@100 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-10-22 14:57:52 +00:00
mvandervoord
ab221162d3
- inlined '0x' printing in UnityPrintNumberHex to avoid unnecessary recursion
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@93 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-07 13:20:26 +00:00
mvandervoord
d01fe47662
- renamed 'bit' variable to 'current_bit' to avoid name collision with some special compilers (HiTech for PIC)
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@92 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-06 19:03:07 +00:00
mvandervoord
8f0d259539
- cr/lf marker independent parsing code for summary
...
- removed pointless braces in a couple of macros
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@91 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-08-24 00:12:11 +00:00
mvandervoord
f5ce02f135
- removed pointless cast from UnityPrint
...
- test executable returns number of failures as exit status
- caught up lame text docs
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@90 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-08-13 00:32:34 +00:00
mkarlesky
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
mvandervoord
0cd87b0a2e
- fixed a silly mistake where TEST_IGNORE was accepting a message argument when only TEST_IGNORE_MESSAGE should have been
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@86 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-30 11:41:20 +00:00
mvandervoord
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
mkarlesky
4049959edc
removed unnecessary function overhead introduced in previous commit
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@83 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-08 17:42:15 +00:00
mkarlesky
1f14c09b2b
added protection to prevent multiple test assertion failures or multiple ignores in single test case (usually due to asserts in tearDown)
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@82 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-08 17:24:11 +00:00
mvandervoord
a867d1f6bf
- fixed some formatting
...
- added a cast to reduce warnings
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@80 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 19:16:48 +00:00
mvandervoord
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
mkarlesky
9909bfe235
robustified null pointer handling for array handling
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@78 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 04:45:31 +00:00
mkarlesky
2b881e22d8
(1.) removed errant '.' from memory mismatch string (2.) made string asserts more verbose for NULL string pointers (3.) modified UnityPrint to display unprintable characters as codes
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@77 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 02:23:56 +00:00
mvandervoord
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
mvandervoord
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
greg-williams
32f317f6c0
Fixed typo in TEST_ASSERT_NOT_EQUAL macro message
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@72 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-05-25 18:11:11 +00:00
mvandervoord
789e248a57
- just cleaned a couple of comments
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@71 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-05-17 23:52:52 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
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
mvandervoord
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