Add some unit tests

This commit is contained in:
Tiago Gomes
2013-03-18 14:42:54 +00:00
parent 403695a7ba
commit acf83dd0a1
7 changed files with 403 additions and 3 deletions

View 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;