You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another option is to have an operator, perhaps <> or <=>, which randomly chooses whether the comparison succeeds or fails. This could be used to drive high-quality tests for fault-tolerant programming.
I am making this proposal inspired from the above comment. If have a random comparison operator and have control over it's randomness via build flags it would be useful to write tests and also code.
The text was updated successfully, but these errors were encountered:
Another option is to have an operator, perhaps <> or <=>, which randomly chooses whether the comparison succeeds or fails. This could be used to drive high-quality tests for fault-tolerant programming.
Originally posted by @robpike in #45319 (comment)
I am making this proposal inspired from the above comment. If have a random comparison operator and have control over it's randomness via build flags it would be useful to write tests and also code.
The text was updated successfully, but these errors were encountered: