@@ -3,8 +3,8 @@ use encoding_rs::*;
33#[ test]
44#[ cfg_attr( miri, ignore) ] // Miri is too slow
55fn test_jis0208_decode_all ( ) {
6- let input = include_bytes ! ( "test_data/ jis0208_in.txt" ) ;
7- let expectation = include_str ! ( "test_data/ jis0208_in_ref.txt" ) ;
6+ let input = include_bytes ! ( "jis0208_in.txt" ) ;
7+ let expectation = include_str ! ( "jis0208_in_ref.txt" ) ;
88 let ( cow, had_errors) = EUC_JP . decode_without_bom_handling ( input) ;
99 assert ! ( had_errors, "Should have had errors." ) ;
1010 assert_eq ! ( & cow[ ..] , expectation) ;
@@ -13,8 +13,8 @@ fn test_jis0208_decode_all() {
1313#[ test]
1414#[ cfg_attr( miri, ignore) ] // Miri is too slow
1515fn test_jis0208_encode_all ( ) {
16- let input = include_str ! ( "test_data/ jis0208_out.txt" ) ;
17- let expectation = include_bytes ! ( "test_data/ jis0208_out_ref.txt" ) ;
16+ let input = include_str ! ( "jis0208_out.txt" ) ;
17+ let expectation = include_bytes ! ( "jis0208_out_ref.txt" ) ;
1818 let ( cow, encoding, had_errors) = EUC_JP . encode ( input) ;
1919 assert ! ( !had_errors, "Should not have had errors." ) ;
2020 assert_eq ! ( encoding, EUC_JP ) ;
@@ -24,8 +24,8 @@ fn test_jis0208_encode_all() {
2424#[ test]
2525#[ cfg_attr( miri, ignore) ] // Miri is too slow
2626fn test_jis0212_decode_all ( ) {
27- let input = include_bytes ! ( "test_data/ jis0212_in.txt" ) ;
28- let expectation = include_str ! ( "test_data/ jis0212_in_ref.txt" ) ;
27+ let input = include_bytes ! ( "jis0212_in.txt" ) ;
28+ let expectation = include_str ! ( "jis0212_in_ref.txt" ) ;
2929 let ( cow, had_errors) = EUC_JP . decode_without_bom_handling ( input) ;
3030 assert ! ( had_errors, "Should have had errors." ) ;
3131 assert_eq ! ( & cow[ ..] , expectation) ;
0 commit comments