Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/Test/MiscTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2010-11-29 19:40:44 +0000
committerPhil Nash2010-11-29 19:40:44 +0000
commite6b2b0e656d52f95a9fd292199f9eefb59eae585 (patch)
treeb6f1dce7164b84a38d9d9be2226655f322362b1a /Test/MiscTests.cpp
parent3d6fa6897096bd4d0ad1bf3a28436dc9fc922caf (diff)
downloadcatch3-e6b2b0e656d52f95a9fd292199f9eefb59eae585.tar.gz
Implemented more reporter methods and started to fill out Section impl
Diffstat (limited to 'Test/MiscTests.cpp')
-rw-r--r--Test/MiscTests.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/Test/MiscTests.cpp b/Test/MiscTests.cpp
new file mode 100644
index 00000000..ea004cc8
--- /dev/null
+++ b/Test/MiscTests.cpp
@@ -0,0 +1,31 @@
+/*
+ * MiscTests.cpp
+ * Catch - Test
+ *
+ * Created by Phil on 29/11/2010.
+ * Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
+ *
+ * Distributed under the Boost Software License, Version 1.0. (See accompanying
+ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ *
+ */
+
+#include "../catch.hpp"
+
+TEST_CASE( "succeeding/Misc/Sections", "random SECTION tests" )
+{
+ int a = 1;
+ int b = 2;
+
+ SECTION( "s1", "doesn't equal" )
+ {
+ EXPECT( a != b );
+ EXPECT( b != a );
+ }
+
+ SECTION( "s2", "not equal" )
+ {
+ EXPECT_NOT( a == b);
+ }
+
+}