Add some unit tests
This commit is contained in:
28
packages/CLPBN/horus/unit_tests/Common.h
Normal file
28
packages/CLPBN/horus/unit_tests/Common.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "../Horus.h"
|
||||
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
|
||||
namespace Horus {
|
||||
|
||||
namespace UnitTests {
|
||||
|
||||
extern const std::string modelFile;
|
||||
|
||||
extern const std::vector<Params> marginalProbs;
|
||||
|
||||
extern const Params jointProbs;
|
||||
|
||||
Params generateRandomParams (Ranges ranges);
|
||||
|
||||
bool similiar (double v1, double v2);
|
||||
|
||||
bool similiar (const Params& p1, const Params& p2);
|
||||
|
||||
} // namespace UnitTests
|
||||
|
||||
} // namespace Horus;
|
||||
|
Reference in New Issue
Block a user