Revision 447, 0.6 kB
(checked in by vbarta, 15 years ago)
|
mgamma configurable tests
|
Line | |
---|
1 | #define BDMLIB // not an ideal way to prevent double registration of UI factories... |
---|
2 | #include "base/bdmbase.h" |
---|
3 | #include "base/user_info.h" |
---|
4 | #include "stat/exp_family.h" |
---|
5 | #include "itpp_ext.h" |
---|
6 | #include "mpdf_harness.h" |
---|
7 | #include "mat_checks.h" |
---|
8 | #include "UnitTest++.h" |
---|
9 | |
---|
10 | using namespace bdm; |
---|
11 | |
---|
12 | template<> |
---|
13 | const ParticularUI<mgamma> &ParticularUI<mgamma>::factory( |
---|
14 | ParticularUI<mgamma>("mgamma")); |
---|
15 | |
---|
16 | TEST(test_mgamma) { |
---|
17 | RV::clear_all(); |
---|
18 | UIFile in("mgamma.cfg"); |
---|
19 | Array<mpdf_harness *> input; |
---|
20 | UI::get(input, in, "data"); |
---|
21 | int sz = input.size(); |
---|
22 | CHECK(sz > 0); |
---|
23 | for (int i = 0; i < sz; ++i) { |
---|
24 | input(i)->test(); |
---|
25 | } |
---|
26 | } |
---|