root/library/tests/mgamma_test.cpp @ 450

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
10using namespace bdm;
11
12template<>
13const ParticularUI<mgamma> &ParticularUI<mgamma>::factory(
14    ParticularUI<mgamma>("mgamma"));
15
16TEST(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}
Note: See TracBrowser for help on using the browser.