vortex_array/arrays/constant/compute/
mod.rs1mod binary_numeric;
2mod boolean;
3mod cast;
4mod compare;
5mod filter;
6mod invert;
7mod sum;
8mod take;
9
10#[cfg(test)]
11mod test {
12 use vortex_dtype::half::f16;
13 use vortex_scalar::Scalar;
14
15 use crate::IntoArray;
16 use crate::arrays::constant::ConstantArray;
17 use crate::compute::conformance::mask::test_mask;
18
19 #[test]
20 fn test_mask_constant() {
21 test_mask(&ConstantArray::new(Scalar::null_typed::<i32>(), 5).into_array());
22 test_mask(&ConstantArray::new(Scalar::from(3u16), 5).into_array());
23 test_mask(&ConstantArray::new(Scalar::from(1.0f32 / 0.0f32), 5).into_array());
24 test_mask(&ConstantArray::new(Scalar::from(f16::from_f32(3.0f32)), 5).into_array());
25 }
26}