Commit a752e2b
committed
Fix tuple equality with null values
Previously, if tuples had the same fields, and at least one field had a null value on one tuple and a non-null value on the other, then:
* if the null/non-null field came after a field with different values, it returned false (which is correct)
* if the null/non-null field came before a field with different values, it returned null (which is incorrect)
Now it will return the correct answer regardless of where the null/non-null field is.1 parent d37f845 commit a752e2b
6 files changed
Lines changed: 1340 additions & 714 deletions
File tree
- examples/browser
- src/util
- test
- elm/comparison
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8755 | 8755 | | |
8756 | 8756 | | |
8757 | 8757 | | |
| 8758 | + | |
8758 | 8759 | | |
8759 | 8760 | | |
8760 | 8761 | | |
8761 | 8762 | | |
8762 | 8763 | | |
8763 | 8764 | | |
8764 | 8765 | | |
8765 | | - | |
| 8766 | + | |
8766 | 8767 | | |
8767 | 8768 | | |
8768 | 8769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments