Improve predicate tests #16

Open
opened 2026-10-29 07:18:39 +01:00 by c.fahner · 0 comments
Owner

Make the predicate tests more robust by also inserting a "decoy" measurement. The decoy must be specified per case to ensure it does not accidentally match.

The test can now additionally check if queryCount() returns 1 and should still iterate the entire cursor to the end to ensure it contains only 1 result.

For now, only apply this to the "found" cases.

Make the predicate tests more robust by also inserting a "decoy" measurement. The decoy must be specified per case to ensure it does not accidentally match. The test can now additionally check if `queryCount()` returns 1 and should still iterate the entire cursor to the end to ensure it contains only 1 result. For now, only apply this to the "found" cases.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slendium/ocd-conformance-tests#16
No description provided.