Phil Nash | e6b2b0e | 2010-11-29 19:40:44 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * MiscTests.cpp |
| 3 | * Catch - Test |
| 4 | * |
| 5 | * Created by Phil on 29/11/2010. |
| 6 | * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. |
| 7 | * |
| 8 | * Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 9 | * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | #include "../catch.hpp" |
| 14 | |
| 15 | TEST_CASE( "succeeding/Misc/Sections", "random SECTION tests" ) |
| 16 | { |
| 17 | int a = 1; |
| 18 | int b = 2; |
| 19 | |
| 20 | SECTION( "s1", "doesn't equal" ) |
| 21 | { |
| 22 | EXPECT( a != b ); |
| 23 | EXPECT( b != a ); |
| 24 | } |
| 25 | |
| 26 | SECTION( "s2", "not equal" ) |
| 27 | { |
| 28 | EXPECT_NOT( a == b); |
| 29 | } |
| 30 | |
| 31 | } |