Skip to content

Added tests for $anyElementTrue and $allElementTrue#122

Merged
eerxuan merged 2 commits intodocumentdb:mainfrom
vic-tsang:any/allElementTrue/tests
Apr 20, 2026
Merged

Added tests for $anyElementTrue and $allElementTrue#122
eerxuan merged 2 commits intodocumentdb:mainfrom
vic-tsang:any/allElementTrue/tests

Conversation

@vic-tsang
Copy link
Copy Markdown
Collaborator

@vic-tsang vic-tsang commented Apr 17, 2026

This PR contains

  • tests for $anyElementTrue and $allElementTrue

Ref:

@vic-tsang vic-tsang requested a review from a team as a code owner April 17, 2026 01:24
Copy link
Copy Markdown
Collaborator

@fanyangv fanyangv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file organization differs between the two operators. $anyElementTrue has dedicated _null_missing.py and _scale.py files, while $allElementsTrue embeds those tests in _invalid.py and _core.py respectively. Conversely,
$allElementsTrue has a dedicated _truthiness.py while $anyElementTrue puts truthiness tests in _core.py. Consider aligning the file structure so both operators follow the same split — it makes it easier to verify coverage
parity and navigate the tests.

Signed-off-by: Victor Tsang <vitsangp@amazon.com>
@vic-tsang vic-tsang force-pushed the any/allElementTrue/tests branch from 0df452d to 09715b3 Compare April 20, 2026 08:35
@vic-tsang vic-tsang requested a review from fanyangv April 20, 2026 08:35
@vic-tsang
Copy link
Copy Markdown
Collaborator Author

vic-tsang commented Apr 20, 2026

rebased and fixed folder structure

@eerxuan eerxuan merged commit 66145cd into documentdb:main Apr 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants