Expand description
§Array Consistency Tests
This module contains tests that verify consistency between related compute operations on Vortex arrays. These tests ensure that different ways of achieving the same result produce identical outputs.
§Test Categories
- Filter/Take Consistency: Verifies that filtering with a mask produces the same result as taking with the indices where the mask is true.
- Mask Composition: Ensures that applying multiple masks sequentially produces the same result as applying a combined mask.
- Identity Operations: Tests that operations with identity inputs (all-true masks, sequential indices) preserve the original array.
- Null Handling: Verifies consistent behavior when operations introduce or interact with null values.
- Edge Cases: Tests empty arrays, single elements, and boundary conditions.
Functions§
- test_
array_ consistency - Run all consistency tests on an array.