@@ -11,10 +11,10 @@ use self::common::gen::{gen_arr, gen_slice, Enum, FixedStruct, Gen, TupleStruct,
1111use self :: common:: util:: new_in_memory_file;
1212
1313fn test_write_slice < T , R > (
14- rng : & mut R , ds : & h5 :: Dataset , arr : & ArrayD < T > , default_value : & T , _ndim : usize ,
15- ) -> h5 :: Result < ( ) >
14+ rng : & mut R , ds : & hdf5 :: Dataset , arr : & ArrayD < T > , default_value : & T , _ndim : usize ,
15+ ) -> hdf5 :: Result < ( ) >
1616where
17- T : h5 :: H5Type + fmt:: Debug + PartialEq + Gen + Clone ,
17+ T : hdf5 :: H5Type + fmt:: Debug + PartialEq + Gen + Clone ,
1818 R : Rng + ?Sized ,
1919{
2020 let shape = arr. shape ( ) ;
@@ -40,10 +40,10 @@ where
4040}
4141
4242fn test_read_slice < T , R > (
43- rng : & mut R , ds : & h5 :: Dataset , arr : & ArrayD < T > , ndim : usize ,
44- ) -> h5 :: Result < ( ) >
43+ rng : & mut R , ds : & hdf5 :: Dataset , arr : & ArrayD < T > , ndim : usize ,
44+ ) -> hdf5 :: Result < ( ) >
4545where
46- T : h5 :: H5Type + fmt:: Debug + PartialEq + Gen ,
46+ T : hdf5 :: H5Type + fmt:: Debug + PartialEq + Gen ,
4747 R : Rng + ?Sized ,
4848{
4949 ds. write ( arr) ?;
7878 let bad_slice = gen_slice ( rng, & bad_shape) ;
7979 let bad_slice: SliceInfo < _ , IxDyn > = ndarray:: SliceInfo :: new ( bad_slice. as_slice ( ) ) . unwrap ( ) ;
8080
81- let bad_sliced_read: h5 :: Result < ArrayD < T > > = dsr. read_slice ( & bad_slice) ;
81+ let bad_sliced_read: hdf5 :: Result < ArrayD < T > > = dsr. read_slice ( & bad_slice) ;
8282 assert ! ( bad_sliced_read. is_err( ) ) ;
8383
8484 // Tests for dimension-dropping slices with static dimensionality.
@@ -102,9 +102,9 @@ where
102102 Ok ( ( ) )
103103}
104104
105- fn test_read < T > ( ds : & h5 :: Dataset , arr : & ArrayD < T > , ndim : usize ) -> h5 :: Result < ( ) >
105+ fn test_read < T > ( ds : & hdf5 :: Dataset , arr : & ArrayD < T > , ndim : usize ) -> hdf5 :: Result < ( ) >
106106where
107- T : h5 :: H5Type + fmt:: Debug + PartialEq + Gen ,
107+ T : hdf5 :: H5Type + fmt:: Debug + PartialEq + Gen ,
108108{
109109 ds. write ( arr) ?;
110110
@@ -143,9 +143,9 @@ where
143143 Ok ( ( ) )
144144}
145145
146- fn test_write < T > ( ds : & h5 :: Dataset , arr : & ArrayD < T > , ndim : usize ) -> h5 :: Result < ( ) >
146+ fn test_write < T > ( ds : & hdf5 :: Dataset , arr : & ArrayD < T > , ndim : usize ) -> hdf5 :: Result < ( ) >
147147where
148- T : h5 :: H5Type + fmt:: Debug + PartialEq + Gen ,
148+ T : hdf5 :: H5Type + fmt:: Debug + PartialEq + Gen ,
149149{
150150 // .write()
151151 ds. write ( arr) ?;
@@ -166,9 +166,9 @@ where
166166 Ok ( ( ) )
167167}
168168
169- fn test_read_write < T > ( ) -> h5 :: Result < ( ) >
169+ fn test_read_write < T > ( ) -> hdf5 :: Result < ( ) >
170170where
171- T : h5 :: H5Type + fmt:: Debug + PartialEq + Gen + Clone ,
171+ T : hdf5 :: H5Type + fmt:: Debug + PartialEq + Gen + Clone ,
172172{
173173 let td = T :: type_descriptor ( ) ;
174174 let mut packed = vec ! [ false ] ;
@@ -185,7 +185,7 @@ where
185185 for mode in 0 ..4 {
186186 let arr: ArrayD < T > = gen_arr ( & mut rng, ndim) ;
187187
188- let ds: h5 :: Dataset = file
188+ let ds: hdf5 :: Dataset = file
189189 . new_dataset :: < T > ( )
190190 . packed ( * packed)
191191 . create ( "x" , arr. shape ( ) . to_vec ( ) ) ?;
@@ -213,7 +213,7 @@ where
213213}
214214
215215#[ test]
216- fn test_read_write_primitive ( ) -> h5 :: Result < ( ) > {
216+ fn test_read_write_primitive ( ) -> hdf5 :: Result < ( ) > {
217217 test_read_write :: < i8 > ( ) ?;
218218 test_read_write :: < i16 > ( ) ?;
219219 test_read_write :: < i32 > ( ) ?;
@@ -231,27 +231,27 @@ fn test_read_write_primitive() -> h5::Result<()> {
231231}
232232
233233#[ test]
234- fn test_read_write_enum ( ) -> h5 :: Result < ( ) > {
234+ fn test_read_write_enum ( ) -> hdf5 :: Result < ( ) > {
235235 test_read_write :: < Enum > ( )
236236}
237237
238238#[ test]
239- fn test_read_write_tuple_struct ( ) -> h5 :: Result < ( ) > {
239+ fn test_read_write_tuple_struct ( ) -> hdf5 :: Result < ( ) > {
240240 test_read_write :: < TupleStruct > ( )
241241}
242242
243243#[ test]
244- fn test_read_write_fixed_struct ( ) -> h5 :: Result < ( ) > {
244+ fn test_read_write_fixed_struct ( ) -> hdf5 :: Result < ( ) > {
245245 test_read_write :: < FixedStruct > ( )
246246}
247247
248248#[ test]
249- fn test_read_write_varlen_struct ( ) -> h5 :: Result < ( ) > {
249+ fn test_read_write_varlen_struct ( ) -> hdf5 :: Result < ( ) > {
250250 test_read_write :: < VarLenStruct > ( )
251251}
252252
253253#[ test]
254- fn test_read_write_tuples ( ) -> h5 :: Result < ( ) > {
254+ fn test_read_write_tuples ( ) -> hdf5 :: Result < ( ) > {
255255 test_read_write :: < ( u8 , ) > ( ) ?;
256256 test_read_write :: < ( u64 , f32 ) > ( ) ?;
257257 test_read_write :: < ( i8 , u64 , f32 ) > ( ) ?;
0 commit comments