Changeset 545 for library/tests
- Timestamp:
- 08/18/09 09:38:41 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/datalink_test.cpp
r493 r545 1 1 #include "../bdm/stat/exp_family.h" 2 #include "mat_checks.h" 2 3 #include "UnitTest++.h" 3 4 … … 26 27 CHECK_EQUAL ( exp_f[i], filtered ( i ) ); 27 28 } 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 ); 28 34 } 29 35 … … 48 54 CHECK_EQUAL ( 1, cond.size() ); 49 55 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 ); 50 60 } 51 61