use integer_array; use fixed::{types::extra::U18, FixedI32}; // Testing of real types #[test] fn create_type_real() { integer_array::declare_array_real!( Arr11, 11, FixedI32 ); let mut x = Arr11::new( FixedI32::::from_num(66) ); let y = Arr11::new( FixedI32::::from_num(2) ); x = x/y; assert_eq!(x.front(), 33); } // Testing of complex types /* #[test] fn create_type_complex() { integer_array::declare_array_complex!( CArr11, Arr11, 11); let x = CArr11::new( 1, 2 ); assert_eq!{ x[1], num::complex::Complex{re:1, im:2} }; } #[test] fn real() { integer_array::declare_array_complex!( CArr11, Arr11, 11); let x = CArr11::new( 5, 2 ); assert_eq!{ x.real() , Arr11::new(5) }; } */