- 25 1月, 2017 1 次提交
-
-
由 Crt Mori 提交于
There was a mismatch of definition and declaration of UnityPrintFloat and this commit aligns both on const UNITY_DOUBLE, but then inside it actually uses a positive version of the variable only.
-
- 19 1月, 2017 1 次提交
-
-
由 jsalling 提交于
Used clang-format, which produces noise on stuff you don't care about and requires setting it up to match the existing code base. Kept the potentially useful changes, discarded the rest, some manual tweaking required. It did catch lots of pesky indentation mistakes.
-
- 18 1月, 2017 3 次提交
- 16 1月, 2017 1 次提交
-
-
由 jsalling 提交于
-
- 15 1月, 2017 5 次提交
-
-
由 jsalling 提交于
With a wider integer width than a pointer, gcc can still warn when you cast a pointer. Strange but true. To see these warnings compile with gcc -m32, 32-bit target, and enable UNITY_SUPPORT_64
-
由 jsalling 提交于
Using this option changes the control flow of Unity, but is useful on constrained embedded systems. You can't fully simulate the power of 'longjmp' with just 'return', but Unity still works well, all tests pass.
-
由 jsalling 提交于
-
由 jsalling 提交于
Move longjump inside caller, to functions returning 'void' This single function needed to change to allow optional setjmp.h
-
由 jsalling 提交于
The setjmp calls are all in TEST_PROTECT() already
-
- 07 1月, 2017 1 次提交
-
-
由 jsalling 提交于
Defensive coding
-
- 31 12月, 2016 1 次提交
-
-
由 jsalling 提交于
-
- 30 12月, 2016 2 次提交
-
-
由 jsalling 提交于
-
- 29 12月, 2016 2 次提交
- 25 12月, 2016 1 次提交
-
-
由 jsalling 提交于
-
- 24 12月, 2016 3 次提交
- 29 11月, 2016 1 次提交
-
-
由 Mark VanderVoord 提交于
Revised internal type naming scheme to better sandbox Unity away from everything else. Sure, short was nice, but not at the expense of naming collisions.
-
- 20 11月, 2016 10 次提交
-
-
由 jsalling 提交于
Takes about 10 minutes to run all floats, so split into 3 tests for parallel running later. This was useful during development for finding hard corner cases and getting the routine to high quality. Off by default. Note that all floats 16.0 and up can be represented uniquely (in this format) and will round-trip back to the exact same float with sscanf(). This property is true for UnityPrintFloat, despite a few rounding error cases, it will produce output identity. Better comments and refactor on round ties to even Add upper threshold value on round to even feature since numerical precision issues start to give approximations when dividing one large double by another. When tested on float values, using 1e22 gave the fewest rounding errors. Fix warnings from gcc. Some float constants do not behave well in existing tests. Add casts where conversions could be imprecise.
-
由 jsalling 提交于
Move double tests down in the file
-
由 jsalling 提交于
-
由 jsalling 提交于
Remove UNITY_FLOAT_VERBOSE entirely, add option UNITY_EXCLUDE_FLOAT_PRINT Remove some questionable float casts from doubles Default to Round Ties to Even behavior, add option to Round Ties Away from Zero
-
由 jsalling 提交于
Linux gcc & clang and OSX clang produce output with ties round to even Windows mingw gcc does not Example 0.0078125 prints '0.007812'
-
由 jsalling 提交于
-
由 jsalling 提交于
-
由 jsalling 提交于
Change some types to signed for simpler code and speed Added format to distinguish small numbers
-
由 jsalling 提交于
Print 9 digits
-
由 jsalling 提交于
-
- 17 11月, 2016 2 次提交
-
-
由 jsalling 提交于
Delete old method for printing
-
由 jsalling 提交于
Improve printing six decimal places, remove trailing 0's, fix the carry when numbers like 0.9999999 round up and print leading zeros in the decimal The first attempt at printing floats had precision issues where the last few digits would often be wrong. This next approach may yield a better algorithm for numbers less than 4.29 billion, those that fit in 32 bits.
-
- 15 11月, 2016 1 次提交
-
-
由 Mark VanderVoord 提交于
We can’t guarantee that the built-in function insane will return 1. It might return any other non-negative value. Therefore we need to force it to be 1 so we can use the comparison operator later.
-
- 13 11月, 2016 2 次提交
- 11 10月, 2016 1 次提交
-
-
由 jsalling 提交于
-
- 27 9月, 2016 1 次提交
-
-
由 Jeremy Hannon 提交于
fix cppcheck "Array index 'i' is used before limits check."
-
- 22 9月, 2016 1 次提交
-
-
由 Mark VanderVoord 提交于
Finished fixing floating point comparisons. We have streamlined how floats and doubles are checked, but we still can't compare them for equality directly. So we're directly testing for infinite and NaN before checking diffs. Also, we've officially decided that for testing purposes NaN shall equal NaN, +Inf shall equal +Inf, and -Inf shall equal -Inf. It's what most people expect during a test.
-