Changeset 604 for library/tests
- Timestamp:
- 09/06/09 22:53:06 (15 years ago)
- Location:
- library/tests
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/datalink_test.cpp
r598 r604 93 93 RV ab=concat(a,b); 94 94 RV aa = a; 95 a.t (-1);95 a.t_plus(-1); 96 96 aa.add(a); 97 97 -
library/tests/rv_test.cpp
r586 r604 8 8 TEST ( test_rv ) { 9 9 RV::clear_all(); 10 10 11 11 RV a = RV ( "{a_in_test_rv }", "3" ); 12 12 CHECK ( a.equal ( a ) ); … … 137 137 RV join=a; 138 138 join.add(b); 139 RV tmp=a; tmp.t (1);139 RV tmp=a; tmp.t_plus(1); 140 140 join.add(tmp); 141 tmp=b; tmp.t (-1);141 tmp=b; tmp.t_plus(-1); 142 142 join.add(tmp); 143 143 144 144 CHECK_EQUAL(unique(join._ids()), vec_2(a.id(0), b.id(0))); // find only ids of a and b 145 145 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)); 146 152 } -
library/tests/testResample.cpp
r488 r604 14 14 RV x ( "1" ); 15 15 RV xm = x; 16 xm.t ( -1 );16 xm.t_plus ( -1 ); 17 17 const 18 18 RV y ( "2" ); -
library/tests/test_particle.cpp
r488 r604 14 14 RV x ( "1" ); 15 15 RV xm = x; 16 xm.t ( -1 );16 xm.t_plus ( -1 ); 17 17 const 18 18 RV y ( "2" );