Skip to content
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

Default optional #147

Merged

Conversation

martinfantini
Copy link
Contributor

For the case of default optional, if the value storage is empty, it has not send anything in the steam.

This is correct done in the V! but not in the V2.

@@ -405,7 +405,7 @@ TEST_CASE("test the encoding of fast operator default","[operator_default_encode

inst.prev_value().defined(false); // reset the previous value to undefined again

REQUIRE( encode_ext_cref("\xC0\x80",
REQUIRE( encode_ext_cref("\x80",
Copy link
Contributor Author

@martinfantini martinfantini Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the unit test is checking a optional field with the default value which is not present in the value storage. And the old value encoded in the stream was \x80 (\xC0**\x80** ), which makes no sense, send a empty value.

Now it is sending only the \x80, which is the pmap only.

@huangminghuang huangminghuang merged commit a74af23 into objectcomputing:master Mar 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants