Manually iterate over UniValue arrays in tests

This commit is contained in:
Jack Grigg
2017-01-07 10:11:31 +01:00
parent 0d37ae3a59
commit 5fb326d41d
3 changed files with 12 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ void expect_deser_same(const T& expected)
}
template<typename T, typename U>
void expect_test_vector(T& it, const U& expected)
void expect_test_vector(T& v, const U& expected)
{
expect_deser_same(expected);
@@ -42,7 +42,7 @@ void expect_test_vector(T& it, const U& expected)
std::cout << "\t\"" ;
std::cout << HexStr(ss1.begin(), ss1.end()) << "\",\n";
#else
std::string raw = (it++)->get_str();
std::string raw = v.get_str();
CDataStream ss2(ParseHex(raw), SER_NETWORK, PROTOCOL_VERSION);
ASSERT_TRUE(ss1.size() == ss2.size());