13 #include <gtest/gtest.h>
14 #include "../../include/ecl/utilities/parameter.hpp"
31 ParameterTest() : value(3) {};
42 using ecl::utilities::tests::ParameterTest;
51 int i1 = test.value();
53 const int i3 = test.value();
54 const int &i4 = test.value();
63 int i1 = test.value();
66 const int i3 = test.value();
67 const int &i4 = test.value();
69 EXPECT_EQ(3,test.value());
71 EXPECT_EQ(3,test.value());
73 EXPECT_EQ(3,test.value());
75 EXPECT_EQ(3,test.value());
77 EXPECT_EQ(3,test.value());
80 TEST(Parameter,assign) {
83 int i1 = test.value();
86 const int i3 = test.value();
87 const int &i4 = test.value();
90 EXPECT_EQ(3,test.value());
92 EXPECT_EQ(3,test.value());
94 EXPECT_EQ(3,test.value());
96 EXPECT_EQ(3,test.value());
98 EXPECT_EQ(3,test.value());
101 TEST(Parameter,eval) {
108 const int &i5 = test.value;
110 const int i6 = test.value;
122 int main(
int argc,
char **argv) {
123 testing::InitGoogleTest(&argc,argv);
124 return RUN_ALL_TESTS();