DGtal  0.9.2
testCatch.cpp
1 
33 #include "DGtalCatch.h"
34 
35 TEST_CASE( "Point Vector Unit tests" )
36 {
37 
38  int a = 5;
39  int b = 3+2;
40  int c = a+1;
41 
42  SECTION("Comparisons")
43  {
44  REQUIRE( a == b );
45  a=6;
46  REQUIRE( a == c );
47  }
48 
49  SECTION("No side-effects on global variables in section scopes")
50  {
51  REQUIRE( a == 5 );
52  }
53 }
54 
55