Michał Janiszewski
bfb4ee1597
Prevent building in source dir
...
Fixes #1636
2019-05-21 06:38:06 +02:00
Phil Nash
31537c43d9
Rebased approvals
2019-05-21 00:05:39 +01:00
Phil Nash
96355da34e
StringRef no longer repoints m_start to m_data after c_str() on a substring.
...
This fixes an issue where a self-assignment of a StringRef copy would point into internally (and now dangling) data.
(now self-assignment check is no longer needed)
2019-05-21 00:04:44 +01:00
Phil Nash
71fce429af
Fix clang warning on self-assignment
2019-05-21 00:04:44 +01:00
Jozef Grajciar
d13e094598
Remove unique type check
...
Closes #1628
2019-05-20 21:13:05 +02:00
Phil Nash
d30f1dda02
Rebased approvals
2019-05-18 20:53:28 +01:00
Phil Nash
3bce8ba14b
Fix StringRef self-assignment after substring
...
Thanks to Alex Tkachenko for spotting it.
2019-05-18 17:54:39 +01:00
Jozef Grajciar
e680c4b9fb
fix SEGFAULT during construction of Session
...
coloured output tried to write startup exceptions
to stream which was not initialized
2019-05-15 20:14:25 +02:00
mlimber
f1e14a1168
Add missing word
2019-05-09 22:40:59 +02:00
Martin Hořeňovský
92ad9ee355
Merge pull request #1614 from mlimber/master
...
Allow custom precision in error reports for floating-point numbers
2019-05-03 17:46:03 +02:00
Martin Hořeňovský
e2862a8d71
Add documentation for custom precision in float stringification
2019-05-03 15:40:21 +02:00
Martin Hořeňovský
1161011dd0
Refactor custom precision in floating point stringification
...
Also fixup tests.
2019-05-03 15:38:06 +02:00
mlimber
53a83e855e
Add support for custom precision in floating point stringification
...
Closes #1612
2019-05-02 21:34:47 +02:00
Petr Ledvina
9c741fe960
Allow quotes in CAPTURE arguments ( #1608 )
...
* Allow quotes in CAPTURE arguments
Fix CAPTURE to handle string and character literals properly
2019-05-01 19:12:44 +02:00
Phil nash
979bbf03bb
Removed another redundant ; (from docs)
2019-04-27 18:52:38 +01:00
Phil nash
33ce3f3953
added cpp to another code block in docs
2019-04-27 18:51:26 +01:00
Phil nash
87a9424c9d
Removed redundant ;
2019-04-27 18:50:05 +01:00
Phil nash
00cb0035c9
Enclosed generated StringMaker for enums in Catch namespace, rather than qualified
2019-04-26 18:24:52 +01:00
Phil nash
6267b06089
Added #include for <memory> (for unique_ptr)
2019-04-26 17:06:44 +01:00
Phil nash
9837c35df1
Rebased approvals for stringified enum tests
2019-04-26 11:30:19 +01:00
Phil nash
46066ede17
Merge branch enum stringification work
2019-04-26 11:26:45 +01:00
Phil nash
6981783178
Added some missing #includes
2019-04-25 14:19:00 +01:00
Phil nash
08c8df1e3b
include StringRef, rather than fwd decl, for splitString
2019-04-25 10:32:55 +01:00
Phil nash
daeb5a87e6
Removed global qualification of specialisation
2019-04-25 10:23:58 +01:00
Phil nash
f2ee4f17ad
Moved enum tests that depend on internals to IntrospectiveTests.
...
- also factored out makeEnumInfo, so tests don't need to touch registry
- and added usage test that involves namespace
2019-04-25 10:13:11 +01:00
Wu Yuanshou
182fc3e46e
fix example's mistake in slow-compiles.md
...
the example lack the generation of factorial.o file which lead to an undefined reference error.
2019-04-25 09:48:22 +02:00
Martin Hořeňovský
7c37501b07
v2.7.2
2019-04-22 23:15:59 +02:00
Martin Hostettler
4a1ca1ab55
TrackerContext: Remove misleading instance static method.
...
TrackerContext is not used as singleton, so just remove this misleading
method
2019-04-22 16:37:22 +02:00
Phil Nash
e02d9e788f
Document CATCH_REGISTER_ENUM
2019-04-21 20:32:20 +03:00
Phil Nash
541f1ed1b3
Only provide CATCH_REGISTER_ENUM
...
No longer have version without the CATCH_ prefix
2019-04-21 20:26:46 +03:00
Phil Nash
346723c9b6
Renamed STRINGIFY_ENUM to REGISTER_ENUM
2019-04-21 20:15:26 +03:00
Phil Nash
5a74fcc9c9
Removed IEnumInfo (just use EnumInfo directly)
2019-04-21 20:09:58 +03:00
Phil Nash
9d5d719868
Changed splitString to splitStringRef
...
Now takes and returns StringRefs
2019-04-21 20:03:44 +03:00
Will Handley
91b617c462
Added a vector approximate matcher
2019-04-20 10:02:17 +02:00
Martin Hořeňovský
45e552528d
Remove home-rolled algorithm replacements
...
Previously we had them to avoid including <algorithm> in the vector
matchers, but
* we included it anyway, even though we did not use it
* we use <algorithm> anyways in the generators
2019-04-19 17:54:21 +02:00
Martin Hořeňovský
3978e9653b
Add more documentation on contributing
2019-04-18 16:18:30 +02:00
Stephen Newell
d6fce7bf34
Fix warnings generated with -Wshadow
2019-04-18 15:30:38 +02:00
Martin Hořeňovský
c3c82f539c
Merge pull request #1336 from ax3l/topic-overrideVirtualRedundant
...
Refactor: override implies virtual
2019-04-18 14:10:24 +02:00
Martin Hořeňovský
c7653811a6
Add basic CPack support
...
@ThijsWithaar is responsible for giving me the idea, but his PR
had couple of things that meant it was simpler to rewrite it than
to fix and merge it.
Supersedes and closes #1599
2019-04-18 13:47:33 +02:00
JoeyGrajciar
79417b9afc
Revert "draft of nttp support"
...
This reverts commit 0c39409da7
.
2019-04-18 11:35:33 +02:00
JoeyGrajciar
11cdd72db9
Merge remote-tracking branch 'refs/remotes/origin/nttp_support'
2019-04-18 11:26:33 +02:00
Jozef Grajciar
0c39409da7
draft of nttp support
...
added _SIG macros
2019-04-17 21:41:19 +02:00
Martin Hořeňovský
edfac75347
Add test for omitting the 'Filters' heading when there were none
2019-04-16 23:49:22 +02:00
Martin Luelf
ac94bd0520
ParseAndAddCatchTests: Ignore cmake object libraries
2019-04-14 19:10:15 +02:00
Maciej Patro
d4eec016a9
CatchAddTests now adds tags as labels for ctest
...
- `ctest --print-labels` now will show list of available labels
- `ctest -L <regex>` will allow to run tests with given labels(tags)
2019-04-14 18:59:53 +02:00
Martin Hořeňovský
36fb856163
Fix JUnit reporter output so that it conforms to JUnit schema
...
The `properties` can only go under the `testsuite` tag, not under
the `testsuites` tag.
Fixes #1598
2019-04-11 13:04:54 +02:00
Martin Hořeňovský
4e32e0a563
Fix vendored dep because upstream is non-responsive
...
Eventually this needs to be fixed in the textflow project by Phil,
but he has not done so in the half a year this bug has been known
to be there, so...
Closes #1470
Closes #1455
2019-04-10 20:17:25 +02:00
Daniele E. Domenichelli
1e2270b370
ParseAndAddCatchTests: Do not change CMAKE_MINIMUM_REQUIRED_VERSION when included
2019-04-10 10:50:13 +02:00
Daniele E. Domenichelli
5096e39297
ParseAndAddCatchTests: Add scope to functions in order to avoid name collisions
2019-04-10 10:50:13 +02:00
Daniele E. Domenichelli
15ccced6da
ParseAndAddCatchTests: Document AdditionalCatchParameters variable
2019-04-10 10:50:13 +02:00