@@ -12,11 +12,11 @@ use rand::{
1212} ;
1313
1414use libqoi:: { qoi_decode, qoi_encode} ;
15- use qoi_fast :: consts:: {
15+ use qoi :: consts:: {
1616 QOI_HEADER_SIZE , QOI_MASK_2 , QOI_OP_DIFF , QOI_OP_INDEX , QOI_OP_LUMA , QOI_OP_RGB , QOI_OP_RGBA ,
1717 QOI_OP_RUN , QOI_PADDING_SIZE ,
1818} ;
19- use qoi_fast :: { decode_header, decode_to_vec, encode_to_vec} ;
19+ use qoi :: { decode_header, decode_to_vec, encode_to_vec} ;
2020
2121use self :: common:: hash;
2222
@@ -291,20 +291,20 @@ fn test_generated() {
291291 let encode_c = |data : & [ u8 ] , size| qoi_encode ( data, size, 1 , channels as _ ) ;
292292 let decode_c = |data : & [ u8 ] | qoi_decode ( data, channels as _ ) . map ( |r| r. 1 ) ;
293293
294- check_roundtrip ( "qoi-fast -> qoi-fast " , & img, channels as _ , encode, decode) ;
295- check_roundtrip ( "qoi-fast -> qoi.h" , & img, channels as _ , encode, decode_c) ;
296- check_roundtrip ( "qoi.h -> qoi-fast " , & img, channels as _ , encode_c, decode) ;
294+ check_roundtrip ( "qoi-rust -> qoi-rust " , & img, channels as _ , encode, decode) ;
295+ check_roundtrip ( "qoi-rust -> qoi.h" , & img, channels as _ , encode, decode_c) ;
296+ check_roundtrip ( "qoi.h -> qoi-rust " , & img, channels as _ , encode_c, decode) ;
297297
298298 let size = ( img. len ( ) / channels) as u32 ;
299299 let encoded = encode ( & img, size) . unwrap ( ) ;
300300 let encoded_c = encode_c ( & img, size) . unwrap ( ) ;
301301 cfg_if ! {
302302 if #[ cfg( feature = "reference" ) ] {
303303 let eq = encoded. as_slice( ) == encoded_c. as_ref( ) ;
304- assert!( eq, "qoi-fast [reference mode] doesn't match qoi.h" ) ;
304+ assert!( eq, "qoi-rust [reference mode] doesn't match qoi.h" ) ;
305305 } else {
306306 let eq = encoded. len( ) == encoded_c. len( ) ;
307- assert!( eq, "qoi-fast [non-reference mode] length doesn't match qoi.h" ) ;
307+ assert!( eq, "qoi-rust [non-reference mode] length doesn't match qoi.h" ) ;
308308 }
309309 }
310310
0 commit comments