Files
hush3/src/test-komodo/testutils.h
Scott Sadler 8a8e10f02f cleanups
2018-04-09 11:53:13 -03:00

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 */