We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hasMasksSet
What is the hasMasksSet constraint supposed to do with something like hasMasksSet: [0x03]?
hasMasksSet: [0x03]
The C++ implementation does:
if (current & expected) { return true; }
while the python implementation does:
(value & mask) == mask
So the C++ is testing "any of the bits in the mask is set", while the Python tests "all of the bits in the mask are set".
The C++ implementation seems more useful since the Python behavior can be gotten already with hasMasksSet: [0x01, 0x02], no?
hasMasksSet: [0x01, 0x02]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What is the hasMasksSet constraint supposed to do with something like
hasMasksSet: [0x03]
?The C++ implementation does:
while the python implementation does:
So the C++ is testing "any of the bits in the mask is set", while the Python tests "all of the bits in the mask are set".
The C++ implementation seems more useful since the Python behavior can be gotten already with
hasMasksSet: [0x01, 0x02]
, no?The text was updated successfully, but these errors were encountered: