mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add SMTChecker tests for standard JSON
This commit is contained in:
1 parent
6251a289dd
commit
0ff4cbe51b
13 files changed
+270
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user