Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2017-04-19 21:41:31 +0300
committeronqtam <vik.kirilov@gmail.com>2017-05-16 00:22:21 +0300
commitf71532533f74aaeae269d9013ccbc9752dbc751a (patch)
treef5e911f04c86602cb1ba8329e4419347b27bb91a /examples
parentc79b7540c252e7cda51fea5c406182fe1f2a8f4c (diff)
builds should definitely be fixed now...
Diffstat (limited to 'examples')
-rw-r--r--examples/all_features/templated_test_cases.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/all_features/templated_test_cases.cpp b/examples/all_features/templated_test_cases.cpp
index c77425b6..15eaf78b 100644
--- a/examples/all_features/templated_test_cases.cpp
+++ b/examples/all_features/templated_test_cases.cpp
@@ -56,8 +56,8 @@ typedef doctest::Types<
TEST_CASE_TEMPLATE("multiple types", T, pairs) {
typedef typename T::A T1;
typedef typename T::B T2;
- T1 t1;
- T2 t2;
+ T1 t1 = T1();
+ T2 t2 = T2();
// use T1 and T2 types
CHECK(t1 == T1());
CHECK(t2 != T2());
@@ -71,8 +71,8 @@ TYPE_TO_STRING(int_pair);
TEST_CASE_TEMPLATE("bad stringification of type pair", T, doctest::Types<int_pair>) {
typedef typename T::A T1;
typedef typename T::B T2;
- T1 t1;
- T2 t2;
+ T1 t1 = T1();
+ T2 t2 = T2();
// use T1 and T2 types
CHECK(t1 == T1());
CHECK(t2 != T2());