-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add roundtrip test cases for the new encode
functionality
#7
Comments
Original and Encoded bufers -
|
gabhijit
added a commit
that referenced
this issue
Apr 29, 2022
There was an issue with the Derive Macro of OPEN type that would cause incorrect encoding. This was related to the handling of the length of encoding an open type (which was missed in the original implementation). With this fix, now we are able to perform a roundtrip decode/encode/decode of a string and verify that the strings and types are identical. This should fix #7.
gabhijit
added a commit
that referenced
this issue
Apr 29, 2022
There was an issue with the Derive Macro of OPEN type that would cause incorrect encoding. This was related to the handling of the length of encoding an open type (which was missed in the original implementation). With this fix, now we are able to perform a roundtrip decode/encode/decode of a string and verify that the strings and types are identical. This should fix #7.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since we now have an implementation of
aper::encode
we should be able to take a buffer -> decode it -> encode the resulting struct to a buffer and assert that the resulting two buffers are identical.The text was updated successfully, but these errors were encountered: