comparison tests/libclient/point/main.cpp @ 53:fe7e3524e571

Tests: various style fixes
author David Demelier <markand@malikania.fr>
date Fri, 16 Dec 2016 13:07:44 +0100
parents f30c84b4b9ed
children 858621081b95
comparison
equal deleted inserted replaced
52:4bc4732fa1dd 53:fe7e3524e571
28 out << "{" << point.x() << ", " << point.y() << "}"; 28 out << "{" << point.x() << ", " << point.y() << "}";
29 29
30 return out; 30 return out;
31 } 31 }
32 32
33 } 33 } // !mlk
34 34
35 BOOST_AUTO_TEST_CASE(none) 35 BOOST_AUTO_TEST_CASE(none)
36 { 36 {
37 mlk::point point; 37 mlk::point point;
38 38
46 46
47 BOOST_REQUIRE_EQUAL(10, point.x()); 47 BOOST_REQUIRE_EQUAL(10, point.x());
48 BOOST_REQUIRE_EQUAL(20, point.y()); 48 BOOST_REQUIRE_EQUAL(20, point.y());
49 } 49 }
50 50
51 BOOST_AUTO_TEST_CASE(operatorEq) 51 BOOST_AUTO_TEST_CASE(operator_eq)
52 { 52 {
53 mlk::point point1, point2; 53 mlk::point point1, point2;
54 54
55 BOOST_REQUIRE_EQUAL(point1, point2); 55 BOOST_REQUIRE_EQUAL(point1, point2);
56 } 56 }
57 57
58 BOOST_AUTO_TEST_CASE(operatorEq1) 58 BOOST_AUTO_TEST_CASE(operator_eq1)
59 { 59 {
60 mlk::point point1(10, 20); 60 mlk::point point1(10, 20);
61 mlk::point point2(10, 20); 61 mlk::point point2(10, 20);
62 62
63 BOOST_REQUIRE_EQUAL(point1, point2); 63 BOOST_REQUIRE_EQUAL(point1, point2);
64 } 64 }
65 65
66 BOOST_AUTO_TEST_CASE(operatorNeq) 66 BOOST_AUTO_TEST_CASE(operator_neq)
67 { 67 {
68 BOOST_REQUIRE_NE(mlk::point(10), mlk::point(20)); 68 BOOST_REQUIRE_NE(mlk::point(10), mlk::point(20));
69 BOOST_REQUIRE_NE(mlk::point(10, 10), mlk::point(10, 20)); 69 BOOST_REQUIRE_NE(mlk::point(10, 10), mlk::point(10, 20));
70 } 70 }