Skip to content

Commit 71c202a

Browse files
Copilotanidotnet
andcommitted
Improve test comments with document field values
Co-authored-by: anidotnet <[email protected]>
1 parent 7356ad0 commit 71c202a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nitrite/src/test/java/org/dizitart/no2/integration/collection/CollectionFindByCompoundIndexTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public void testFindByOrFilterAndFilter() {
8787
);
8888

8989
// With the fix, OR filters no longer return duplicates
90+
// doc2 = {firstName: "fn2", lastName: "ln2"}
91+
// doc3 = {firstName: "fn3", lastName: "ln2"}
9092
// First AND: lastName=ln2 AND firstName!=fn1 → matches doc2 and doc3
9193
// Second AND: firstName=fn3 AND lastName=ln2 → matches doc3
9294
// Union without duplicates: doc2 and doc3 (2 total)
@@ -236,6 +238,9 @@ public void testFindByOrFilter() throws ParseException {
236238
);
237239

238240
// With the fix, OR filters no longer return duplicates
241+
// doc1 = {firstName: "fn1", lastName: "ln1", birthDay: "2012-07-01"}
242+
// doc2 = {firstName: "fn2", lastName: "ln2", birthDay: "2010-06-12"}
243+
// doc3 = {firstName: "fn3", lastName: "ln2", birthDay: "2014-04-17"}
239244
// Flattened OR conditions:
240245
// 1. lastName=ln2 → doc2, doc3
241246
// 2. firstName!=fn1 → doc2, doc3

0 commit comments

Comments
 (0)