Closed Aurvandill closed 9 months ago
I'm not sure I understand the purpose of this PR.
Is your goal to check the variable length encoding and the optional encoding?
If so, there's no need to have all this random data. For the optional encoding, you can just hardcode the two cases and for VL vectors you can use something like:
[
{
"length": "10",
"bytes": "..."
},
]
where you pick a few interesting numbers for the length value and encode the bytes by repeating a value that many times.
Thanks for the Input that is indeed more usefull than the random data. I will change the PR accordingly soon
You could actually just use the VL prefix, the implementations can append a byte slice of the correct length.
@raphaelrobert i modified the test case and hope the description i wrote makes sense.
Relates to #172
This is a Test to check the deserialization of a vector containing Optional Vectors.