Changeset 604 for library/tests

Show
Ignore:
Timestamp:
09/06/09 22:53:06 (15 years ago)
Author:
smidl
Message:

change of syntax of RV

Location:
library/tests
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • library/tests/datalink_test.cpp

    r598 r604  
    9393        RV ab=concat(a,b); 
    9494        RV aa = a; 
    95         a.t(-1); 
     95        a.t_plus(-1); 
    9696        aa.add(a);  
    9797 
  • library/tests/rv_test.cpp

    r586 r604  
    88TEST ( test_rv ) { 
    99        RV::clear_all(); 
    10  
     10         
    1111        RV a = RV ( "{a_in_test_rv }", "3" ); 
    1212        CHECK ( a.equal ( a ) ); 
     
    137137        RV join=a; 
    138138        join.add(b); 
    139         RV tmp=a; tmp.t(1); 
     139        RV tmp=a; tmp.t_plus(1); 
    140140        join.add(tmp); 
    141         tmp=b; tmp.t(-1); 
     141        tmp=b; tmp.t_plus(-1); 
    142142        join.add(tmp); 
    143143         
    144144        CHECK_EQUAL(unique(join._ids()), vec_2(a.id(0), b.id(0))); // find only ids of a and b 
    145145        CHECK_EQUAL(unique_complement(join._ids(), vec_1(a.id(0))), vec_1(b.id(0))); // complemnet of a in previous is b 
     146 
     147        //test if unique names work 
     148        RV uniq1("y",1); 
     149        RV uniq2("y",1); 
     150         
     151        CHECK_EQUAL(uniq1.id(0), uniq2.id(0)); 
    146152} 
  • library/tests/testResample.cpp

    r488 r604  
    1414        RV x ( "1" ); 
    1515        RV xm = x; 
    16         xm.t ( -1 ); 
     16        xm.t_plus ( -1 ); 
    1717        const 
    1818        RV y ( "2" ); 
  • library/tests/test_particle.cpp

    r488 r604  
    1414        RV x ( "1" ); 
    1515        RV xm = x; 
    16         xm.t ( -1 ); 
     16        xm.t_plus ( -1 ); 
    1717        const 
    1818        RV y ( "2" );