@@ -106,21 +106,21 @@ namespace rtl_tests
106106
107107 TEST (FunctionInNameSpace, get_namespace_function_types)
108108 {
109- optional<Function> setReal = cxx::mirror ().getFunction (str_setReal );
109+ optional<Function> setReal = cxx::mirror ().getFunction (cxx::fn:: complex ::setReal::id );
110110 ASSERT_TRUE (setReal);
111111
112- optional<Function> setImaginary = cxx::mirror ().getFunction (str_setImaginary );
112+ optional<Function> setImaginary = cxx::mirror ().getFunction (cxx::fn:: complex ::setImaginary::id );
113113 ASSERT_TRUE (setImaginary);
114114
115- EXPECT_TRUE (setReal->getFunctionName () == str_setReal );
116- EXPECT_TRUE (setImaginary->getFunctionName () == str_setImaginary );
115+ EXPECT_TRUE (setReal->getFunctionName () == cxx::fn:: complex ::setReal::id );
116+ EXPECT_TRUE (setImaginary->getFunctionName () == cxx::fn:: complex ::setImaginary::id );
117117 }
118118
119119
120120 TEST (FunctionInNameSpace, namespace_function_execute_return)
121121 {
122122 {
123- optional<Function> fnSetReal = cxx::mirror ().getFunction (str_setReal );
123+ optional<Function> fnSetReal = cxx::mirror ().getFunction (cxx::fn:: complex ::setReal::id );
124124 ASSERT_TRUE (fnSetReal);
125125 EXPECT_TRUE (fnSetReal->hasSignature <double >());
126126
@@ -132,7 +132,7 @@ namespace rtl_tests
132132 EXPECT_TRUE (err == rtl::error::None);
133133 ASSERT_TRUE (ret.isEmpty ());
134134 } {
135- optional<Function> fnSetImaginary = cxx::mirror ().getFunction (str_setImaginary );
135+ optional<Function> fnSetImaginary = cxx::mirror ().getFunction (cxx::fn:: complex ::setImaginary::id );
136136 ASSERT_TRUE (fnSetImaginary);
137137 EXPECT_TRUE (fnSetImaginary->hasSignature <double >());
138138
@@ -144,7 +144,7 @@ namespace rtl_tests
144144 EXPECT_TRUE (err == rtl::error::None);
145145 ASSERT_TRUE (ret.isEmpty ());
146146 } {
147- optional<Function> fnGetMagnitude = cxx::mirror ().getFunction (str_getMagnitude );
147+ optional<Function> fnGetMagnitude = cxx::mirror ().getFunction (cxx::fn:: complex ::getMagnitude::id );
148148 ASSERT_TRUE (fnGetMagnitude);
149149 EXPECT_TRUE (fnGetMagnitude->hasSignature <>()); // empty template params checks for zero arguments.
150150
@@ -166,7 +166,7 @@ namespace rtl_tests
166166
167167 TEST (FunctionInNameSpace, execute_with_wrong_signature)
168168 {
169- optional<Function> fnSetReal = cxx::mirror ().getFunction (str_setReal );
169+ optional<Function> fnSetReal = cxx::mirror ().getFunction (cxx::fn:: complex ::setReal::id );
170170 ASSERT_TRUE (fnSetReal);
171171
172172 EXPECT_TRUE (fnSetReal->hasSignature <double >());
@@ -184,7 +184,7 @@ namespace rtl_tests
184184
185185 TEST (GlobalFunction, get_function_execute_return)
186186 {
187- optional<Function> fnGetComplexAsStr = cxx::mirror ().getFunction (str_getComplexNumAsString );
187+ optional<Function> fnGetComplexAsStr = cxx::mirror ().getFunction (cxx::fn::getComplexNumAsString::id );
188188 ASSERT_TRUE (fnGetComplexAsStr);
189189
190190 rtl::function<rtl::Return ()> getComplexNumAsStr = fnGetComplexAsStr->argsT <>().returnT <>();
0 commit comments