-
Notifications
You must be signed in to change notification settings - Fork 258
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Document when arrays are compared by their contents vs. their object identity #928
Comments
Our handling of arrays is confusing. The main thing to know is that we normally compare objects for equality with The surprising thing is that, when you use We could document this better. If you do want to compare lists of arrays, then you'll need to tell Truth how to compare the arrays -- probably using |
(Someone reminded me that the docs for this are better than I'd thought. There's still more we could say, but for some reason, I was thinking that we didn't yet say anything about this.) |
Got it. Thanks for the explanations! Please feel free to close this one. |
Hi, I got some strange results when comparing List of Arrays. It seems to work for Array of Arrays, List of Lists, and Array of Lists though:
This happens in version 1.1.3.
The text was updated successfully, but these errors were encountered: