13 #include <gtest/gtest.h>
15 #include "../../include/ecl/geometry/linear_segment.hpp"
25 TEST(LinearSegment,construction) {
27 EXPECT_EQ(0.0, horizontal_segment.
A());
28 EXPECT_EQ(1.0, horizontal_segment.
B());
29 EXPECT_EQ(-1.0, horizontal_segment.
C());
31 EXPECT_EQ(1.0, vertical_segment.
A());
32 EXPECT_EQ(0.0, vertical_segment.
B());
33 EXPECT_EQ(2.0, vertical_segment.
C());
35 EXPECT_EQ(-1.0, segment.
A());
36 EXPECT_EQ(1.0, segment.
B());
37 EXPECT_EQ(-1.0, segment.
C());
67 int main(
int argc,
char **argv) {
69 testing::InitGoogleTest(&argc,argv);
70 return RUN_ALL_TESTS();