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
Make the closure dedup and feature sort tests discriminating
Both behaviours survived a mutation of the implementation. Add a closure
fixture that repeats a pair and reports a self-pair, and run the feature
sort test under a collation that disagrees with byte order - testthat
forces LC_COLLATE=C, where the two sorts are indistinguishable.
Copy file name to clipboardExpand all lines: r/tests/testthat/fixtures/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,7 @@ it contributes no feature - only its subproperties do.
93
93
|`closure-update-batch-1.json`| New pairs from adding concepts 1-4 only (6 pairs), for use with the two-page expansion. |
94
94
|`closure-update-batch-2.json`| New pairs from then adding concepts 5-6 (9 pairs). Batches 1 and 2 together give the same 15 pairs as `closure-update.json`. |
95
95
|`closure-update-no-group.json`| An update response with no `group` at all, which must contribute zero pairs. |
96
+
|`closure-update-duplicates.json`| Reports the pair `(399981008, 404684003)` three times - twice in one group, once in a second - and reports `363346000` as subsuming itself, colliding with the identity cell. The encoding must stay multi-hot, so both cells must be exactly 1. `Matrix::sparseMatrix()` sums duplicate triplets, so this is what catches a missing deduplication step. |
0 commit comments