|
From: Robert L. <rle...@us...> - 2007-03-09 09:04:16
|
Update of /cvsroot/ccmtools/ccmtools/test/CppGenerator/facet_types/impl In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv25760/test/CppGenerator/facet_types/impl Modified Files: TestMirror_impl.cc Log Message: bug fix: wrong use of local impl. interfaces Index: TestMirror_impl.cc =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/test/CppGenerator/facet_types/impl/TestMirror_impl.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TestMirror_impl.cc 5 Jan 2007 14:17:28 -0000 1.11 --- TestMirror_impl.cc 9 Mar 2007 09:04:10 -0000 1.12 *************** *** 2,14 **** /*** * Test_mirror component business logic implementation. ! * ! * // TODO: WRITE YOUR DESCRIPTION HERE! * * @author ! * @version * * This file structure was automatically generated by CCM Tools * <http://ccmtools.sourceforge.net/> and contains a component's ! * implementation classes. ***/ --- 2,14 ---- /*** * Test_mirror component business logic implementation. ! * ! * // TODO: WRITE YOUR DESCRIPTION HERE! * * @author ! * @version * * This file structure was automatically generated by CCM Tools * <http://ccmtools.sourceforge.net/> and contains a component's ! * implementation classes. ***/ *************** *** 45,49 **** throw ( Components::CCMException ) { ! CCM_TypeTest::SmartPtr type_test = ctx->get_connection_type_test(); { --- 45,49 ---- throw ( Components::CCMException ) { ! TypeTest::SmartPtr type_test = ctx->get_connection_type_test(); { *************** *** 57,61 **** assert(short_3 == 3); assert(short_r == 3+7); ! long long_2=3, long_3, long_r; long_r = type_test->op_b2(7,long_2, long_3); --- 57,61 ---- assert(short_3 == 3); assert(short_r == 3+7); ! long long_2=3, long_3, long_r; long_r = type_test->op_b2(7,long_2, long_3); *************** *** 63,67 **** assert(long_3 == 3); assert(long_r == 3+7); ! unsigned short ushort_2=3, ushort_3, ushort_r; ushort_r = type_test->op_b3(7,ushort_2, ushort_3); --- 63,67 ---- assert(long_3 == 3); assert(long_r == 3+7); ! unsigned short ushort_2=3, ushort_3, ushort_r; ushort_r = type_test->op_b3(7,ushort_2, ushort_3); *************** *** 69,73 **** assert(ushort_3 == 3); assert(ushort_r == 3+7); ! unsigned long ulong_2=3, ulong_3, ulong_r; ulong_r = type_test->op_b4(7,ulong_2, ulong_3); --- 69,73 ---- assert(ushort_3 == 3); assert(ushort_r == 3+7); ! unsigned long ulong_2=3, ulong_3, ulong_r; ulong_r = type_test->op_b4(7,ulong_2, ulong_3); *************** *** 75,79 **** assert(ulong_3 == 3); assert(ulong_r == 3+7); ! float float_2=3.0, float_3, float_r; float_r = type_test->op_b5(7.0,float_2, float_3); --- 75,79 ---- assert(ulong_3 == 3); assert(ulong_r == 3+7); ! float float_2=3.0, float_3, float_r; float_r = type_test->op_b5(7.0,float_2, float_3); *************** *** 81,85 **** assert(abs(float_3 - 3.0) < 0.001); assert(abs(float_r - (3.0+7.0)) < 0.001); ! double double_2=3.0, double_3, double_r; double_r = type_test->op_b6(7.0,double_2, double_3); --- 81,85 ---- assert(abs(float_3 - 3.0) < 0.001); assert(abs(float_r - (3.0+7.0)) < 0.001); ! double double_2=3.0, double_3, double_r; double_r = type_test->op_b6(7.0,double_2, double_3); *************** *** 87,91 **** assert(abs(double_3 - 3.0) < 0.000001); assert(abs(double_r - (3.0+7.0)) < 0.000001); ! char char_2=3, char_3, char_r; char_r = type_test->op_b7(7,char_2, char_3); --- 87,91 ---- assert(abs(double_3 - 3.0) < 0.000001); assert(abs(double_r - (3.0+7.0)) < 0.000001); ! char char_2=3, char_3, char_r; char_r = type_test->op_b7(7,char_2, char_3); *************** *** 99,103 **** assert(string_3 == "drei"); assert(string_r == "dreisieben"); ! bool bool_2=false, bool_3, bool_r; bool_r = type_test->op_b9(true, bool_2, bool_3); --- 99,103 ---- assert(string_3 == "drei"); assert(string_r == "dreisieben"); ! bool bool_2=false, bool_3, bool_r; bool_r = type_test->op_b9(true, bool_2, bool_3); *************** *** 105,109 **** assert(bool_3 == false); assert(bool_r == false && true); ! unsigned char uchar_2=3, uchar_3, uchar_r; uchar_r = type_test->op_b10(7,uchar_2, uchar_3); --- 105,109 ---- assert(bool_3 == false); assert(bool_r == false && true); ! unsigned char uchar_2=3, uchar_3, uchar_r; uchar_r = type_test->op_b10(7,uchar_2, uchar_3); *************** *** 112,116 **** assert(uchar_r == 3+7); } ! { wchar_t char_2=3, char_3, char_r; --- 112,116 ---- assert(uchar_r == 3+7); } ! { wchar_t char_2=3, char_3, char_r; *************** *** 125,129 **** assert(string_3 == L"drei"); assert(string_r == L"dreisieben"); ! } --- 125,129 ---- assert(string_3 == L"drei"); assert(string_r == L"dreisieben"); ! } *************** *** 135,140 **** assert(time_t_3 == 3); assert(time_t_r == 3+7); ! ! // Test case: enum Color {red, green, blue, black, orange}; Color Color_2,Color_3, Color_r; Color_2 = Color(blue); --- 135,140 ---- assert(time_t_3 == 3); assert(time_t_r == 3+7); ! ! // Test case: enum Color {red, green, blue, black, orange}; Color Color_2,Color_3, Color_r; Color_2 = Color(blue); |