zcashd/src/gtest/json_test_vectors.cpp

15 lines
241 B
C++
Raw Normal View History

2016-08-16 13:08:59 -07:00
#include "json_test_vectors.h"
Array
read_json(const std::string& jsondata)
{
Value v;
if (!read_string(jsondata, v) || v.type() != array_type)
{
ADD_FAILURE();
return Array();
}
return v.get_array();
}