00001 #ifndef TESTING_H
00002 #define TESTING_H
00003
00004 #include "SundanceDefs.h"
00005 #include <string>
00006
00007 namespace Sundance
00008 {
00009 using namespace TSF;
00010 using std::string;
00011
00012
00013
00014
00015
00016
00017 class Testing
00018 {
00019 public:
00020
00021 static void passFailCheck(const string& name, double error, double tol);
00022
00023
00024 static void passFailCheck(const string& name, bool pass);
00025
00026
00027 static void missingPackage(const string& testName,
00028 const string& packageName);
00029
00030
00031 static void crash(const string& name);
00032
00033
00034 static void timeStamp(const string& filename, const string& date,
00035 const string& time);
00036
00037
00038 static void unitTest(const string& testName, bool result);
00039
00040
00041 static void missingFile(const string& testName,
00042 const string& filename);
00043
00044 };
00045
00046
00047
00048 }
00049
00050 #endif