Changeset 545 for library/tests

Show
Ignore:
Timestamp:
08/18/09 09:38:41 (15 years ago)
Author:
vbarta
Message:

moved some datalink method bodies to bdmbase.cpp; more datalink tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/datalink_test.cpp

    r493 r545  
    11#include "../bdm/stat/exp_family.h" 
     2#include "mat_checks.h" 
    23#include "UnitTest++.h" 
    34 
     
    2627                CHECK_EQUAL ( exp_f[i], filtered ( i ) ); 
    2728        } 
     29 
     30        datalink unnamed; 
     31        unnamed.set_connection ( 1, 2, ivec ( "0" ) ); 
     32        filtered = unnamed.pushdown ( vec ( "37 42" ) ); 
     33        CHECK_EQUAL ( vec ( "37" ), filtered ); 
    2834} 
    2935 
     
    4854        CHECK_EQUAL ( 1, cond.size() ); 
    4955        CHECK_EQUAL ( 66, cond ( 0 ) ); 
     56 
     57        vec big ( 4 ); 
     58        dl.pushup_cond ( big, vec ( "2 3 5" ), vec ( "7" ) ); 
     59        CHECK_EQUAL ( vec ( "2 3 5 7" ), big ); 
    5060} 
    5161