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
chore: validate the error type during testing (#6014)
The current test only checks for errors, but doesn't check the error
type. Perhaps this could be improved.
example
```
fn test_primitive_array_validation_failure_length_mismatch() {
// Invalid case: validity length doesn't match buffer length.
let buffer = Buffer::from_iter([1i32, 2, 3]);
let validity = Validity::from_iter([true, false]); // Length 2, buffer is length 3.
let result = PrimitiveArray::try_new(buffer, validity);
assert!(matches!(result, Err(VortexError::InvalidArgument(_, _))));
assert!(result.is_err());
}
```
Signed-off-by: cancaicai <[email protected]>
0 commit comments