16 lines
311 B
C++
16 lines
311 B
C++
#ifndef TESTUTILS_H
|
|
#define TESTUTILS_H
|
|
|
|
#include "script/cc.h"
|
|
|
|
|
|
#define VCH(a,b) std::vector<unsigned char>(a, a + b)
|
|
|
|
static char ccjsonerr[1000] = "\0";
|
|
#define CCFromJson(o,s) \
|
|
o = cc_conditionFromJSONString(s, ccjsonerr); \
|
|
if (!o) FAIL() << "bad json: " << ccjsonerr;
|
|
|
|
|
|
#endif /* TESTUTILS_H */
|