Commit 513c539
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 94cea07 commit 513c539
6 files changed
Lines changed: 841 additions & 479 deletions
File tree
- examples/browser
- src/util
- test
- elm/comparison
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8697 | 8697 | | |
8698 | 8698 | | |
8699 | 8699 | | |
| 8700 | + | |
8700 | 8701 | | |
8701 | 8702 | | |
8702 | 8703 | | |
8703 | 8704 | | |
8704 | 8705 | | |
8705 | 8706 | | |
8706 | 8707 | | |
8707 | | - | |
| 8708 | + | |
8708 | 8709 | | |
8709 | 8710 | | |
8710 | 8711 | | |
| |||
| 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