Add SMTChecker tests for standard JSON

This commit is contained in:
Leonardo Alt authored and Alex Beregszaszi committed 2018-11-23 10:51:06 +00:00
1 parent 6251a289dd
commit 0ff4cbe51b
13 files changed
+270 -2

No files matched your search

+8
View File
@@ -21,6 +21,8 @@
#include "JSON.h"
#include "CommonIO.h"
#include <sstream>
#include <map>
#include <memory>
@@ -111,4 +113,10 @@ bool jsonParse(string const& _input, Json::Value& _json, string *_errs /* = null
return parse(readerBuilder, _input, _json, _errs);
}
bool jsonParseFile(string const& _fileName, Json::Value& _json, string *_errs /* = nullptr */)
{
return jsonParse(readFileAsString(_fileName), _json, _errs);
}
} // namespace dev