Show
Ignore:
Timestamp:
11/13/09 16:11:31 (15 years ago)
Author:
mido
Message:

astyler run over all test sources
general_suite added
cleanup of \test directory finished

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/testsuite/rv_test.cpp

    r717 r722  
    88TEST ( rv_test ) { 
    99        RV::clear_all(); 
    10          
     10 
    1111        RV a = RV ( "{a_in_test_rv }", "3" ); 
    1212        CHECK ( a.equal ( a ) ); 
     
    133133                CHECK_EQUAL ( exp_bi[i], bi ( i ) ); 
    134134        } 
    135          
     135 
    136136        // check uniqueness 
    137         RV join=a; 
    138         join.add(b); 
    139         RV tmp=a; tmp.t_plus(1); 
    140         join.add(tmp); 
    141         tmp=b; tmp.t_plus(-1); 
    142         join.add(tmp); 
    143          
    144         CHECK_EQUAL(unique(join._ids()), vec_2(a.id(0), b.id(0))); // find only ids of a and b 
    145         CHECK_EQUAL(unique_complement(join._ids(), vec_1(a.id(0))), vec_1(b.id(0))); // complemnet of a in previous is b 
     137        RV join = a; 
     138        join.add ( b ); 
     139        RV tmp = a; 
     140        tmp.t_plus ( 1 ); 
     141        join.add ( tmp ); 
     142        tmp = b; 
     143        tmp.t_plus ( -1 ); 
     144        join.add ( tmp ); 
     145 
     146        CHECK_EQUAL ( unique ( join._ids() ), vec_2 ( a.id ( 0 ), b.id ( 0 ) ) ); // find only ids of a and b 
     147        CHECK_EQUAL ( unique_complement ( join._ids(), vec_1 ( a.id ( 0 ) ) ), vec_1 ( b.id ( 0 ) ) ); // complemnet of a in previous is b 
    146148 
    147149        //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)); 
    152          
     150        RV uniq1 ( "y", 1 ); 
     151        RV uniq2 ( "y", 1 ); 
     152 
     153        CHECK_EQUAL ( uniq1.id ( 0 ), uniq2.id ( 0 ) ); 
     154 
    153155        // check scalarname 
    154         CHECK_EQUAL("a_in_test_rv_2", abc.scalarname(2)); 
    155         CHECK_EQUAL("b_in_test_rv_0", abc.scalarname(3)); 
     156        CHECK_EQUAL ( "a_in_test_rv_2", abc.scalarname ( 2 ) ); 
     157        CHECK_EQUAL ( "b_in_test_rv_0", abc.scalarname ( 3 ) ); 
    156158}