10 using std::stringstream;
11 #define ASSERT_EQUAL(x,y)\
15 stringstream difference;\
16 difference<<x<<" vs "<<y;\
17 Error("Test failed: file %s; line %d: %s", __FILE__ , __LINE__,difference.str().c_str());\
33 const int occ = GetOccurrence();
37 const bool isSide = PI.GetIsSide();
51 for(
size_t i = 0; i < neighbours.
Size(); i++) {
52 const QEvent& other = neighbours[i];
56 const bool o_isSide = o_PI.GetIsSide();
68 Info(
"----TEST SUMMARY (Occurrence = %d)-----",GetOccurrence());
69 Info(
"OK: %d", fTestOK);
70 if(fTestKO >0) Panic(
"KO: %d", fTestKO);
71 if(GetOccurrence() == 0 && fTestOK != 20000) Panic(
"Expected test %d vs %d",20000,fTestOK);
72 if(GetOccurrence() == 1 && fTestOK != 8000) Panic(
"Expected test %d vs %d",8000,fTestOK);
#define ASSERT_EQUAL(x, y)
#define REGISTER_MODULE(clazz)
one-line description of your module
void Init(Diana::QEvent &ev)
Init method.
void Do(Diana::QEvent &ev, const Diana::QEventList &neighbours)
Do method.
list of references to const QEvent (s)
size_t Size() const
number of QEvent (s)
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
Raw event: bolometer channel, trigger positions and types.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...