Revision 457, 0.8 kB
(checked in by vbarta, 15 years ago)
|
moved generic configurable tests to common source files
|
Line | |
---|
1 | #define BDMLIB // not an ideal way to prevent double registration of UI factories... |
---|
2 | #include "base/user_info.h" |
---|
3 | #include "stat/exp_family.h" |
---|
4 | #include "epdf_harness.h" |
---|
5 | #include "UnitTest++.h" |
---|
6 | |
---|
7 | using namespace bdm; |
---|
8 | |
---|
9 | template<> |
---|
10 | const ParticularUI<egamma> &ParticularUI<egamma>::factory( |
---|
11 | ParticularUI<egamma>("egamma")); |
---|
12 | |
---|
13 | template<> |
---|
14 | const ParticularUI<enorm<ldmat> > &ParticularUI<enorm<ldmat> >::factory( |
---|
15 | ParticularUI<enorm<ldmat> >("enorm<ldmat>")); |
---|
16 | |
---|
17 | template<> |
---|
18 | const ParticularUI<enorm<fsqmat> > &ParticularUI<enorm<fsqmat> >::factory( |
---|
19 | ParticularUI<enorm<fsqmat> >("enorm<fsqmat>")); |
---|
20 | |
---|
21 | template<> |
---|
22 | const ParticularUI<enorm<chmat> > &ParticularUI<enorm<chmat> >::factory( |
---|
23 | ParticularUI<enorm<chmat> >("enorm<chmat>")); |
---|
24 | |
---|
25 | TEST(test_egamma) { |
---|
26 | epdf_harness::test_config("egamma.cfg"); |
---|
27 | } |
---|
28 | |
---|
29 | TEST(test_enorm) { |
---|
30 | epdf_harness::test_config("enorm.cfg"); |
---|
31 | } |
---|