Changeset 531 for library/tests
- Timestamp:
- 08/14/09 10:23:22 (15 years ago)
- Location:
- library/tests
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/mprod.cfg
r529 r531 56 56 class = "RV"; 57 57 names = ( "mprodx" ); 58 sizes = ( "matrix", 1, 1, [ 2 ] );58 sizes = [ 2 ]; 59 59 }; 60 60 }; … … 70 70 class = "RV"; 71 71 names = ( "mprody" ); 72 sizes = ( "matrix", 1, 1, [ 2 ] );72 sizes = [ 2 ]; 73 73 }; 74 74 }; -
library/tests/rv_test.cpp
r530 r531 10 10 11 11 RV a = RV ( "{a_in_test_rv }", "3" ); 12 CHECK ( a.equal ( a ) ); 12 13 CHECK_EQUAL ( 1, a.length() ); 13 14 CHECK_EQUAL ( 3, a.size ( 0 ) ); … … 15 16 16 17 RV b = RV ( "{b_in_test_rv }", "2" ); 18 CHECK ( !b.equal ( a ) ); 17 19 CHECK_EQUAL ( 0, b.mint() ); 18 20 … … 92 94 } 93 95 96 // subselect 97 RV bc = abc ( ivec ( "1 2" ) ); 98 std::stringstream bcss; 99 bcss << bc; 100 CHECK_EQUAL ( std::string ( "2(2)=b_in_test_rv_{0}; 3(1)=c_in_test_rv_{0}; " ), bcss.str() ); 101 102 #if 0 103 // actually doesn't select, just reorders the variables - 104 // wonder if that's correct... 105 bc = abc ( 1, 2 ); 106 bcss << bc; 107 CHECK_EQUAL ( std::string ( "2(2)=b_in_test_rv_{0}; 3(1)=c_in_test_rv_{0}; " ), bcss.str() ); 108 #endif 109 94 110 // Copy indices between ba and ab 95 111 RV ba = b;