@@ -181,12 +181,12 @@ fn system_tests() {
181181 init_log ( ) ;
182182 run_test_with ( & TestSetting :: default ( ) , || {
183183 // Get all files in the tests/source directory.
184- // let files = get_test_files(Path::new("tests/source"), true);
185- let files = vec ! [
186- // PathBuf::from("tests/source/issue_6096.rs"),
187- // PathBuf::from("tests/source/issue_6080.rs")
188- PathBuf :: from( "tests/source/configs/struct_field_align_threshold/20 .rs" )
189- ] ;
184+ let files = get_test_files ( Path :: new ( "tests/source" ) , true ) ;
185+ // let files = vec![
186+ // PathBuf::from("tests/source/issue_6096.rs"),
187+ // PathBuf::from("tests/source/issue_6080.rs"),
188+ // PathBuf::from("tests/source/issue-4926/deeply_nested_struct_with_long_field_names .rs"),
189+ // ];
190190 // dbg!(&files);
191191 let ( _reports, count, fails) = check_files ( files, & None ) ;
192192
@@ -270,21 +270,18 @@ fn modified_test() {
270270 } ) ;
271271 }
272272
273- assert_eq ! (
274- chunks,
275- vec![
276- ModifiedChunk {
277- line_number_orig: 4 ,
278- lines_removed: 4 ,
279- lines: vec![ "fn blah() {}" . into( ) ] ,
280- } ,
281- ModifiedChunk {
282- line_number_orig: 9 ,
283- lines_removed: 6 ,
284- lines: vec![ "#[cfg(a, b)]" . into( ) , "fn main() {}" . into( ) ] ,
285- } ,
286- ] ,
287- ) ;
273+ assert_eq ! ( chunks, vec![
274+ ModifiedChunk {
275+ line_number_orig: 4 ,
276+ lines_removed: 4 ,
277+ lines: vec![ "fn blah() {}" . into( ) ] ,
278+ } ,
279+ ModifiedChunk {
280+ line_number_orig: 9 ,
281+ lines_removed: 6 ,
282+ lines: vec![ "#[cfg(a, b)]" . into( ) , "fn main() {}" . into( ) ] ,
283+ } ,
284+ ] , ) ;
288285}
289286
290287// Helper function for comparing the results of rustfmt
@@ -950,20 +947,17 @@ fn get_target(file_name: &Path, target: Option<&str>) -> PathBuf {
950947fn rustfmt_diff_make_diff_tests ( ) {
951948 init_log ( ) ;
952949 let diff = make_diff ( "a\n b\n c\n d" , "a\n e\n c\n d" , 3 ) ;
953- assert_eq ! (
954- diff,
955- vec![ Mismatch {
956- line_number: 1 ,
957- line_number_orig: 1 ,
958- lines: vec![
959- DiffLine :: Context ( "a" . into( ) ) ,
960- DiffLine :: Resulting ( "b" . into( ) ) ,
961- DiffLine :: Expected ( "e" . into( ) ) ,
962- DiffLine :: Context ( "c" . into( ) ) ,
963- DiffLine :: Context ( "d" . into( ) ) ,
964- ] ,
965- } ]
966- ) ;
950+ assert_eq ! ( diff, vec![ Mismatch {
951+ line_number: 1 ,
952+ line_number_orig: 1 ,
953+ lines: vec![
954+ DiffLine :: Context ( "a" . into( ) ) ,
955+ DiffLine :: Resulting ( "b" . into( ) ) ,
956+ DiffLine :: Expected ( "e" . into( ) ) ,
957+ DiffLine :: Context ( "c" . into( ) ) ,
958+ DiffLine :: Context ( "d" . into( ) ) ,
959+ ] ,
960+ } ] ) ;
967961}
968962
969963#[ test]
0 commit comments