Mercurial > malikania
comparison tests/libclient/line/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 |
---|---|
53 BOOST_REQUIRE_EQUAL(20, line.y1()); | 53 BOOST_REQUIRE_EQUAL(20, line.y1()); |
54 BOOST_REQUIRE_EQUAL(30, line.x2()); | 54 BOOST_REQUIRE_EQUAL(30, line.x2()); |
55 BOOST_REQUIRE_EQUAL(40, line.y2()); | 55 BOOST_REQUIRE_EQUAL(40, line.y2()); |
56 } | 56 } |
57 | 57 |
58 BOOST_AUTO_TEST_CASE(operatorEq) | 58 BOOST_AUTO_TEST_CASE(operator_eq) |
59 { | 59 { |
60 mlk::line line1, line2; | 60 mlk::line line1, line2; |
61 | 61 |
62 BOOST_REQUIRE_EQUAL(line1, line2); | 62 BOOST_REQUIRE_EQUAL(line1, line2); |
63 } | 63 } |
64 | 64 |
65 BOOST_AUTO_TEST_CASE(operatorEq1) | 65 BOOST_AUTO_TEST_CASE(operator_eq1) |
66 { | 66 { |
67 mlk::line line1(10, 20, 30, 40); | 67 mlk::line line1(10, 20, 30, 40); |
68 mlk::line line2(10, 20, 30, 40); | 68 mlk::line line2(10, 20, 30, 40); |
69 | 69 |
70 BOOST_REQUIRE_EQUAL(line1, line2); | 70 BOOST_REQUIRE_EQUAL(line1, line2); |
71 } | 71 } |
72 | 72 |
73 BOOST_AUTO_TEST_CASE(operatorNeq) | 73 BOOST_AUTO_TEST_CASE(operator_neq) |
74 { | 74 { |
75 BOOST_REQUIRE_NE(mlk::line(10), mlk::line(20)); | 75 BOOST_REQUIRE_NE(mlk::line(10), mlk::line(20)); |
76 BOOST_REQUIRE_NE(mlk::line(10, 10), mlk::line(10, 20)); | 76 BOOST_REQUIRE_NE(mlk::line(10, 10), mlk::line(10, 20)); |
77 BOOST_REQUIRE_NE(mlk::line(10, 10, 10), mlk::line(10, 10, 20)); | 77 BOOST_REQUIRE_NE(mlk::line(10, 10, 10), mlk::line(10, 10, 20)); |
78 BOOST_REQUIRE_NE(mlk::line(10, 10, 10, 10), mlk::line(10, 10, 10, 20)); | 78 BOOST_REQUIRE_NE(mlk::line(10, 10, 10, 10), mlk::line(10, 10, 10, 20)); |