Martin Hořeňovský
22ac9d2184
Approx cleanup: More tests, INFINITY handling, etc
2017-11-01 07:30:11 +01:00
Pfiffikus
00af677577
Approx rework: default scale == 0, epsilon applies to Approx::value
...
Also adds check to Approx::epsilon that the new epsilon has a valid
(ie one between 0 and 1)
Based on
http://realtimecollisiondetection.net/blog/?p=89
https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
https://en.wikipedia.org/wiki/Approximation_error#Formal_Definition
The given epsilon should refer to the target value, otherwise
the result would be unexpected, e.g. 101.02 == Approx(100).epsilon(0.01)
is true.
The default scale should be invisible, thus,
e.g. 101.01 == Approx(100).epsilon(0.01) gets false.
Finally even 101.000001 == Approx(100).epsilon(0.01) is false
2017-10-31 15:43:42 +01:00
Martin Hořeňovský
ae21020640
dev build 6
2017-10-31 15:17:21 +01:00
Martin Hořeňovský
11f716f28d
Make Approx::margin inclusive
...
Fixes #952 , related to #980
2017-10-31 14:49:00 +01:00
Pfiffikus
c3ddd4a7e2
Update test-cases-and-sections.md
...
some clarification and typo correction
2017-10-31 14:28:30 +01:00
Clare Macrae
c43ce85416
Fix very minor typo
...
it's -> its
2017-10-31 14:28:20 +01:00
Pfiffikus
4220f2eef2
Update build-systems.md
...
typo correction
2017-10-31 14:28:10 +01:00
Sebastian Grottel
c1a91caf00
adds flushes to the output stream of teamcity reporter, making the test output more responsive.
2017-10-31 14:27:47 +01:00
Sebastian Grottel
96c5de678d
`RandomNumberGenerator::result_type` should be unsigned ( #1050 )
...
`result_type` must be unsigned:
http://en.cppreference.com/w/cpp/concept/UniformRandomBitGenerator
Using a signed type causes an infinite loop working with MS Visual Studio 2017, targetting: v140, WindowsTargetPlatformVersion 10.0.15063.0, Debug, x64
2017-10-31 14:26:36 +01:00
dvirtz
e68485e196
added PARSE_CATCH_TESTS_ADD_TO_CONFIGURE_DEPENDS option
2017-10-31 14:21:20 +01:00
Martin Hořeňovský
88e912b4d1
Fix documentation crosslink in configuration.md
2017-10-31 14:19:53 +01:00
Dmitry Kozhevnikov
44244713f1
Update handling of __JETBRAINS_IDE__ macro
...
1. Use it to conditionally define CATCH_INTERNAL_CONFIG_COUNTER, not
CATCH_CONFIG_COUNTER, as __JETBRAINS_IDE__ is similar to
compiler-provided macros, not to user-provided ones.
2. Since __COUNTER__ will work starting with CLion 2017.3, use it
when possible (and hopefully remove this check altogether
at some point).
2017-10-31 14:15:54 +01:00
solvingj
eea9e1efd7
Minor - added header-only flag in conan
...
See header-only guidelines:
http://conanio.readthedocs.io/en/latest/howtos/header_only.html?highlight=header%20only
Its borderline cosmetic, but it does have a purpose.
2017-10-31 14:09:44 +01:00
Martin Hořeňovský
601b2888ec
Remove superfluous define from cmake project
2017-10-30 12:27:14 +01:00
Martin Hořeňovský
3049445d78
Remove benchmark binary from main cmake list
...
We can give it a separate CMakeLists.txt later, but there is no
point in building it every time.
2017-10-30 12:25:57 +01:00
Martin Hořeňovský
c672512979
Fix C4601 and enable C4602 warning for internal builds
...
Related to #1072
2017-10-30 12:14:20 +01:00
Martin Hořeňovský
57b4e0b64c
Fix missing pragma warning(pop) and other warnings under MSVC
...
Fixes #1072
2017-10-30 09:58:13 +01:00
Phil Nash
75a77b6f8c
embedded v1.0-develop.2 of Clara, which addresses / prefixed options, which should impact non-windows platforms
...
See #1054
2017-10-21 09:16:38 +02:00
Martin Hořeňovský
5af918eefd
Fix-up pkg-config provided include path
...
Related to #1032
2017-10-17 17:04:37 +02:00
Phil Nash
05b1ca2884
Fixed expansion of _FALSE binary expression
...
- see #1051
2017-10-13 19:45:19 +01:00
Phil Nash
c2b7bd15c0
Changed rhs expression capture from universal ref to const ref.
...
- addresses #1027
2017-10-13 14:16:14 +01:00
Phil Nash
ba6845a865
Version of Clara with (std::max)
2017-10-13 13:46:39 +01:00
Phil Nash
2eb93f47f7
enclosed more min/ max in parentheses to default MFC macros
2017-10-13 13:46:39 +01:00
Martin Hořeňovský
276393e4e5
Change ToC script to use <br> instead of trailing spaces
...
Also updated docs that contain ToC. Fixes #1048
2017-10-13 11:17:38 +02:00
Martin Hořeňovský
c7d9f02d5b
Add pkg-config support
...
Closes #1032
2017-10-12 21:56:22 +02:00
Phil Nash
355ab78f4a
dev build 5
2017-10-12 13:06:41 +01:00
Phil Nash
927f520a97
Moved windows proxy inclusion outside of CATCH_CONFIG_COLOUR_WINDOWS guard, so workaround early inclusion can be removed
2017-10-12 10:37:23 +01:00
philsquared
cc0b093c20
unconditional windows proxy
2017-10-11 14:58:20 +01:00
Martin Hořeňovský
17cdf20968
Mark part of std::chrono stringification tests nonportable
2017-10-09 14:56:23 +02:00
Martin Hořeňovský
4899d891d3
Fix MSVC compilation when stringifying std::chrono::time_point
2017-10-09 13:13:30 +02:00
Martin Hořeňovský
760a25e813
Fix baseline for file where std::pair stringification is not enabled
2017-10-09 13:12:50 +02:00
Martin Hořeňovský
79b405fd3f
Add stringification for std::chrono::{duration,time_point}
...
Also hides std::chrono, std::pair and std::chrono::* behind
new configuration macros, CATCH_CONFIG_ENABLE_*_STRINGMAKER
to avoid dragging in <utility>, <tuple> and <chrono> in common
path, unless requested.
2017-10-09 13:03:29 +02:00
Martin Hořeňovský
f972732737
Workaround for stitching issue in #1020
...
Closes #1020
2017-10-03 18:41:49 +02:00
Martin Moene
61280e6d0a
Rename to updateDocumentToC.py and adapt for use with Catch
...
adding missing GPL 3.0 license (thanks for noting @horenmar).
2017-10-03 15:43:18 +02:00
Martin Moene
7e9b53e40c
Add original markdown_toclify.py by Sebastian Raschk (@rasbt)
...
- https://github.com/rasbt/markdown-toclify
2017-10-03 15:43:18 +02:00
Martin Hořeňovský
b80c5134f0
Updated release notes
2017-10-01 17:03:06 +02:00
Martin Hořeňovský
70e0d48978
Replace throw; with std::rethrow_exception(std::current_exception());
...
This works around a bug in libcxxrt handling of active exception count
that caused std::uncaught_exception() to return true even if there was
none.
Closes #1028
2017-09-28 12:53:09 +02:00
offa
11918b76d0
Direct link to the single header file updated to latest release (dev.4).
2017-09-27 18:20:34 +02:00
Phil Nash
5fe19f73e7
Scoped parseInfos population so `i` can be reused
2017-09-26 16:06:48 -07:00
Phil Nash
c1416d55cb
Backed out dynamic stack array (use fixed size for now)
2017-09-26 15:55:34 -07:00
Phil Nash
2a1f8ae684
New version of Clara
2017-09-26 14:13:08 -07:00
Phil Nash
9541e89e6a
Changed embed script to just do direct regex substitution
2017-09-26 14:13:08 -07:00
Martin Hořeňovský
80bbce8424
Reorganize release notes
2017-09-26 13:38:09 +02:00
Phil Nash
3d49d83128
Added benchmark support to MultiReporters
...
- otherwise benchmarks are not reported if multiple reporters (usually reporter + listener(s)) are used
2017-09-21 09:32:46 +01:00
Phil Nash
bd46f66754
dev build 4
2017-09-19 17:42:20 +01:00
Phil Nash
e9f0773f37
Updated release notes
2017-09-19 17:36:20 +01:00
Phil Nash
54f1ce2af2
Don't use console colour if running in XCode
2017-09-19 15:25:33 +01:00
Phil Nash
0a146e3af7
OCTest project now #includes all cpp files, so they all get __OBJC__ defined
2017-09-19 14:59:12 +01:00
Phil Nash
b9ff7ec301
Fixed issues for ObjC use (see #1011 )
2017-09-19 14:38:18 +01:00
Phil Nash
a63b4a75bd
Updated OCTest project
2017-09-19 14:37:35 +01:00