tests for bet protocol done; verify notarisation still to test
This commit is contained in:
15
src/test-komodo/testutils.h
Normal file
15
src/test-komodo/testutils.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef TESTUTILS_H
|
||||
#define TESTUTILS_H
|
||||
|
||||
#include "komodo_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 */
|
||||
Reference in New Issue
Block a user