Martin Hořeňovský
00347f1e79
v2.8.0
2019-05-26 22:47:00 +02:00
Martin Hořeňovský
a5a2d08fbb
Remove commented out code
2019-05-26 21:19:55 +02:00
Jozef Grajciar
0c43f98fa2
Nttp support
...
Closes #1531
2019-05-23 21:03:47 +02:00
Martin Hořeňovský
99602787cd
Fix error message when unmatched quotes are encountered by CAPTURE
...
Thanks to @ledvinap for noticing
2019-05-23 13:54:51 +02: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
Jozef Grajciar
d13e094598
Remove unique type check
...
Closes #1628
2019-05-20 21:13:05 +02: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
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
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
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
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
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
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
JoeyGrajciar
79417b9afc
Revert "draft of nttp support"
...
This reverts commit 0c39409da7
.
2019-04-18 11:35:33 +02:00
Jozef Grajciar
0c39409da7
draft of nttp support
...
added _SIG macros
2019-04-17 21:41:19 +02:00
Torfinn Berset
5ce355a38c
For macOS builds, disable isDebuggerActive() for non-AppleClang targets. Fixes #1588
2019-04-10 10:19:54 +02:00
Ryan Pavlik
edde6f4736
Fix typos identified by codespell.
...
Self test baselines also modified accordingly, due to
one typo found in a string in test code.
2019-04-10 09:42:11 +02:00
Martin Hořeňovský
e99f1efd28
Avoid adding a default test spec when none was provided
2019-04-09 11:50:59 +02:00
Martin Hořeňovský
b9dd1936e5
v2.7.1
2019-04-08 13:38:00 +02:00
Phil nash
02f13cf95a
Made onto dev build and regenerated single header
2019-04-04 16:02:58 +01:00
Phil nash
43428c6093
First commit of STRINGIFY_ENUM
2019-04-04 15:55:46 +01:00
Martin Hořeňovský
08147a23f9
Fix ObjC matchers
...
Closes #1571
2019-04-03 20:32:11 +02:00
Ziv Shahaf
8af8704089
support for printing test filters (PR #1585 )
2019-04-03 20:24:52 +02:00
Martin Hořeňovský
3816e99d0c
Add GENERATE_COPY and GENERATE_VAR capturing generator macros
2019-03-31 14:11:10 +02:00
Martin Hořeňovský
b77cec05c0
Fix test tag parsing to split [.foo] into [.][foo]
2019-03-29 10:48:56 +01:00
Omer Ozarslan
54089c4c8c
Deducing return type of map generator helper ( #1576 )
...
* Deduce map return type implicitly
Giving the first template argument to map generator function to deduce
return type is now optional even if the return type is different from
the type generated by mapped generator.
2019-03-24 15:44:22 +01:00
Alex Alabuzhev
0531965349
Suppress warning caused by ntstatus.h inclusion
2019-03-19 23:57:56 +00:00
Martin Hořeňovský
d633072794
v2.7.0
2019-03-07 21:44:57 +01:00
Omer Ozarslan
99575b45db
Add unscoped info functionality
...
This adds UNSCOPED_INFO macro, creating a log message that is stored
until the end of next assertion or the end of test case, whichever comes
first. These messages are not scoped locally, unlike messages created by
INFO macro.
2019-03-06 22:04:35 +01:00
SimonChh
7d2451f119
Fix output redirection in failing tests ( #1525 )
...
Fixes #1514
2019-03-02 21:18:48 +01:00
Martin Hořeňovský
29b3b7ae6b
Namespace our type traits in catch_meta
...
Previously they could conflict with user-defined type traits that
were in the global namespace.
Fixes #1548
2019-02-23 21:06:20 +01:00
Martin Hořeňovský
693647c43f
Add ChunkGenerator
...
This generator collects values from the underlying generator until it
has a specified amount of them, and then returns them in one "chunk".
In case the underlying generator does not have enough elements for
a specific chunk, the left-over elements are discarded.
Closes #1538
2019-02-23 20:28:58 +01:00
Martin Hořeňovský
288387fa10
Cleanup: move things around
2019-02-23 17:16:28 +01:00
Rick de Water
165de9b072
Add RangeGenerator
2019-02-23 16:58:34 +01:00
Martin Hořeňovský
269303d9d9
Introduce random number (Integral and Float) generators
2019-02-20 00:09:15 +01:00