Changeset 528 for library

Show
Ignore:
Timestamp:
08/14/09 09:02:07 (15 years ago)
Author:
vbarta
Message:

using test-specific RV names

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/rv_test.cpp

    r477 r528  
    77 
    88TEST ( test_rv ) { 
    9         RV a = RV ( "{a }", "3" ); 
     9        RV a = RV ( "{a_in_test_rv }", "3" ); 
    1010        CHECK_EQUAL ( 1, a.length() ); 
    1111        CHECK_EQUAL ( 3, a.size ( 0 ) ); 
    12         CHECK_EQUAL ( std::string ( "a" ), a.name ( 0 ) ); 
     12        CHECK_EQUAL ( std::string ( "a_in_test_rv" ), a.name ( 0 ) ); 
    1313 
    14         RV b = RV ( "{b }", "2" ); 
     14        RV b = RV ( "{b_in_test_rv }", "2" ); 
    1515        CHECK_EQUAL ( 0, b.mint() ); 
    1616 
    17         RV c = RV ( "{c }" ); 
     17        RV c = RV ( "{c_in_test_rv }" ); 
    1818        CHECK_EQUAL ( 1, c.length() ); 
    1919        CHECK_EQUAL ( 1, c.size ( 0 ) ); 
    2020 
    21         RV trv = RV ( "{e f }", "1 2", "3 4" ); 
     21        RV trv = RV ( "{e_in_test_rv f_in_test_rv }", "1 2", "3 4" ); 
    2222        CHECK_EQUAL ( 2, trv.length() ); 
    2323        CHECK_EQUAL ( 3, trv.mint() ); 
     
    2929        CHECK_EQUAL ( 2, ab.length() ); 
    3030        CHECK_EQUAL ( 3, ab.size ( 0 ) ); 
    31         CHECK_EQUAL ( std::string ( "a" ), ab.name ( 0 ) ); 
     31        CHECK_EQUAL ( std::string ( "a_in_test_rv" ), ab.name ( 0 ) ); 
    3232        CHECK_EQUAL ( 2, ab.size ( 1 ) ); 
    33         CHECK_EQUAL ( std::string ( "b" ), ab.name ( 1 ) ); 
     33        CHECK_EQUAL ( std::string ( "b_in_test_rv" ), ab.name ( 1 ) ); 
    3434 
    3535        std::stringstream abss; 
    3636        abss << ab; 
    37         CHECK_EQUAL ( std::string ( "1(3)=a_{0}; 2(2)=b_{0}; " ), abss.str() ); 
     37        CHECK_EQUAL ( std::string ( "1(3)=a_in_test_rv_{0}; 2(2)=b_in_test_rv_{0}; " ), abss.str() ); 
    3838 
    3939        // concat a, b and c 
     
    4242        std::stringstream abcss; 
    4343        abcss << abc; 
    44         CHECK_EQUAL ( std::string ( "1(3)=a_{0}; 2(2)=b_{0}; 3(1)=c_{0}; " ), abcss.str() ); 
     44        CHECK_EQUAL ( std::string ( "1(3)=a_in_test_rv_{0}; 2(2)=b_in_test_rv_{0}; 3(1)=c_in_test_rv_{0}; " ), abcss.str() ); 
    4545 
    4646        // structure of a, b, c 
     
    5858        CHECK_EQUAL ( 1, slice.length() ); 
    5959        CHECK_EQUAL ( 3, slice.size ( 0 ) ); 
    60         CHECK_EQUAL ( std::string ( "a" ), slice.name ( 0 ) ); 
     60        CHECK_EQUAL ( std::string ( "a_in_test_rv" ), slice.name ( 0 ) ); 
    6161 
    6262        // find a in abc 
     
    7979        std::stringstream acss; 
    8080        acss << ac; 
    81         CHECK_EQUAL ( std::string ( "1(3)=a_{0}; 3(1)=c_{0}; " ), acss.str() ); 
     81        CHECK_EQUAL ( std::string ( "1(3)=a_in_test_rv_{0}; 3(1)=c_in_test_rv_{0}; " ), acss.str() ); 
    8282 
    8383        // data index of ac in abc