src/test/xy_test.cc
changeset 517 1380377682ab
parent 516 c37949721c61
child 518 fcdb561b8c78
equal deleted inserted replaced
0:c0340b867d5a 1:b4e69a785b63
    65 
    65 
    66 	seged.x=0;seged.y=3;
    66 	seged.x=0;seged.y=3;
    67 	check(!doboz1.inside(seged),"Inside? Should not be.");
    67 	check(!doboz1.inside(seged),"Inside? Should not be.");
    68 
    68 
    69 	BB doboz2(seged);
    69 	BB doboz2(seged);
    70 	check(!doboz2.empty(), "empty? Should not be.");
    70 	check(!doboz2.empty(), "empty? Should not be. Constructed from 1 point.");
    71 
    71 
    72 	doboz2 += doboz1;
    72 	doboz2 += doboz1;
    73 	check(doboz2.inside(seged),"Inside? Should be.");
    73 	check(doboz2.inside(seged),"Inside? Should be. Incremented a box with an other.");
    74 
    74 
    75 	cout << (passed ? "All tests passed." : "Some of the tests failed!!!")
    75 	cout << (passed ? "All tests passed." : "Some of the tests failed!!!")
    76 	     << endl;
    76 	     << endl;
    77 
    77 
    78 	return passed ? 0 : 1;
    78 	return passed ? 0 : 1;