StoreTransform

This commit is contained in:
Michael Davidsaver
2020-03-26 08:35:23 -07:00
parent 39c270c379
commit d5c59d1cfd
4 changed files with 33 additions and 14 deletions
+3 -3
View File
@@ -340,7 +340,7 @@ void testDeserialize2()
});
testOk1(!!val["value"].isMarked());
testOk1(!val["arbitrary.sarr"].isMarked());
testArrEq(val["value"].as<shared_array<const void>>().castTo<const uint64_t>(),
testArrEq(val["value"].as<shared_array<const uint64_t>>(),
shared_array<const uint64_t>({1u, 0xdeadbeef, 2u}));
}
@@ -528,7 +528,7 @@ void testArrayXCodeT(const char(&encoded)[N], std::initializer_list<E> values)
testToBytes(true, [&expected, &def](Buffer& buf) {
auto val = def.create();
val["value"] = expected.template castTo<const void>();
val["value"] = expected;
to_wire_valid(buf, val);
}, encoded);
@@ -540,7 +540,7 @@ void testArrayXCodeT(const char(&encoded)[N], std::initializer_list<E> values)
from_wire_valid(buf, ctxt, val2);
});
testArrEq(expected, val2["value"].as<shared_array<const void>>().castTo<const E>());
testArrEq(expected, val2["value"].as<shared_array<const E>>());
}
void testArrayXCode()