69 Commits

Author SHA1 Message Date
c10f87f1e6 Fixed issues regarding the example Meson project. 2019-07-03 21:03:39 -07:00
c7185b3a5a Added prototypes to stop errors when Ninja. 2019-07-03 15:55:19 -07:00
e89b281e43 Wrote info in readme.txt 2019-07-03 15:54:19 -07:00
ab9f8d0959 Added example 4 in examples directory. 2019-07-03 15:30:50 -07:00
071044bdd6 Merge pull request #349 from kykrueger/issue-#348-generalize-example-3-gcc-config
Issue #348 generalize example 3 gcc config
2019-05-04 08:11:04 -04:00
bc2ab233ee Fix error in example_1 and example_2
This test case had an error in both examples:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode

It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
2019-01-25 21:51:25 -08:00
9d1ffe26d6 Fix error in example_1
This test case had an error:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
which is a value in the list.

The compile option -Wno-misleading-indentation was also added to
remove a compiler warning produced by gcc 7.3.0
2019-01-25 21:22:55 -08:00
a6e9f85f71 Added examples for the configuration of UnityPrintFormatted and exclusion of <stddef.h> 2019-01-25 07:01:29 +01:00
6b657c6f17 Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
7dd21c333e Fix unintended array overrun in example (#360. Thanks @quantum-leaps) 2018-11-02 07:42:47 -04:00
56f1646087 add missing trailing slash 2018-09-10 15:19:15 +02:00
8ba35a0e52 Revert "remove change that slipped in from other project"
This reverts commit 5d2ef07054c201776520b2c3ada19b819f56253c.
2018-09-10 11:26:13 +02:00
5d2ef07054 remove change that slipped in from other project 2018-09-10 11:21:41 +02:00
c64cc7d4f4 fix new references 2018-09-10 10:51:14 +02:00
f60ab920c9 switch hardcoded string to reference existing value 2018-09-10 10:38:55 +02:00
cc909efed3 Implement optional printing of execution time for each test 2017-09-10 13:00:09 +12:00
05daf95d4e Update to match Ruby style guide 2017-09-08 15:37:31 -04:00
a07d07cd1a Allow specifying custom header declaration
The user can specify UNITY_OUTPUT_CHAR_HEADER_DECLARATION and
UNITY_OUTPUT_FLUSH_HEADER_DECLARATION when he would like to declare
UNITY_OUTPUT_CHAT or UNITY_OUTPUT_FLUSH respectivly
2017-08-01 22:43:58 +03:00
c1bc32dc58 - Generator will not change names by default
- Fixed some style issues.
2017-06-25 13:58:31 -04:00
2a5b24f7bf Finished updating all Ruby scripts to match our coding standard. Woo! 2017-03-28 20:02:53 -04:00
3a6cca39c5 Fixed things that the stylizer “autocorrected” to wrong. ;) 2017-03-28 08:52:10 -04:00
3062c39725 Starting to enforce our coding style. The first step is that we’ve pulled in Rubocop to check out Ruby syntax. There is likely a bit of customization to do yet AND there is definitely that backlog of todo’s that we just told it to ignore. 2017-03-28 08:44:32 -04:00
e0104179ed Fix 32-bit build issues on Travis-CI by installing multilib
If, longer term, the Travis-CI support for 32-bit is inconsistent
the lines that failed are:
 - make -s DEBUG=-m32
 - cd ../example_3 && rake
Add target 'ci' for building examples with -Werror
2017-01-22 21:13:08 -06:00
bb7f889f03 Compile examples in continuous integration, update example_3 readme
Altered the rake build so that it passes. The example_3 shows off
some failing tests, so the rake build has to ignore those.
Update .gitignore file with executables from examples
2017-01-18 19:33:24 -06:00
185fb49380 Cleanup example Makefiles, update test runners
Delete clang flags that were disabled with -Wno-*
2017-01-18 08:13:41 -06:00
d460a89a04 Get example 1 to compile easily on systems without ruby 2017-01-17 21:10:38 -06:00
6695e9e975 Merge pull request #242 from jsalling/feature/fixture-test-name
Fixture - Remove duplicate output of test name in verbose mode
2017-01-13 16:38:10 -05:00
e92f2c2762 Update comments to reflect changes to floating point 2016-12-29 23:10:43 -06:00
5f33721924 Remove duplicate output of test name, Fixture verbose mode
Remove UNITY_FIXTURES option, which was probably not doing what was
originally indended. It was suppressing the test name even in quiet mode.
2016-12-28 21:18:50 -06:00
03b9eaa9ba Fix bug, makefiles for example do not clean on windows 2016-10-06 11:00:22 +02:00
28c94bd403 Remove references to UNITY_EXCLUDE_SIZEOF, rework config header 2016-08-25 08:48:29 -05:00
83f7d5237b Change example_1 to compile with std=c89 2016-05-15 14:35:56 +01:00
d7a371a993 Moved example unity_config.h from src to examples
As recommended in PR #193
2016-05-12 16:00:31 +01:00
33325f4a0b More fixes to line endings 2016-01-07 14:20:59 -05:00
77af37add0 - catch optional fixtures plugin up to mainline unity (somewhat. like fixing line endings) 2015-06-18 17:16:01 -04:00
06c95fcb08 - Fixed broken examples 2015-06-18 10:38:20 -04:00
89b003ed0b Removed platform-specific warnings unsupported by GCC 2015-03-12 10:53:44 -04:00
5f77c6380d Added "const" to one argv parameter that was missed when adding strict error checks. 2015-01-20 16:14:41 +02:00
b389c71e71 Added stricter error checks by the compiler, and adapted all impacted code.
Primarily -
* Added "static" to static functions.
* Added proper signature with "void" to functions without arguments.
* Marked unused arguments with "(void)".
* Removed entirely unused static functions.
* Added "const" to preserve const-correctness.
* Added function prototypes for external functions.
2015-01-18 00:39:05 +02:00
28d05e4f33 Fixed tests 2014-11-05 21:57:48 -05:00
bcb4b74de9 - updated example makefiles to handle cygwin better 2014-11-03 19:39:37 -05:00
399a878c14 Fixed examples compilation 2014-11-01 21:47:04 +04:00
376480a4d9 make fixtures and examples compatible with new UnityBegin method. 2014-08-16 10:51:25 -04:00
bff1fc68cb rearranged project to centralize all self-test stuff under test directory. only pull in includes when required. 2014-07-30 10:14:02 -04:00
8ca802d4dc Updated examples
*  Renamed example x to example 3
2013-07-19 21:30:35 +10:00
d27699d97a Updated examples
*  Updated example 2 readme
 *  Broke up huge line in example 2 makefile
2013-07-17 23:27:25 +10:00
efc1df828f Added example
*  Added example that uses unity test fixture
2013-07-17 23:23:09 +10:00
1b9b197298 Added another example
*  Simple makefile example, extracted from existing example
2013-07-17 22:48:50 +10:00
5932565bae Updated example
*  Moved existing example to its own directory, with the intention of adding more examples
 *  Existing example uses its own .yml file instead of one of the files in targets/.
2013-07-17 22:42:43 +10:00
843370a7c2 Updated example makefile
*  Make would fail due to missing build directory. Now it doesn't try to delete build/
2013-07-17 22:14:47 +10:00