File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -1096,13 +1096,23 @@ fn ignore_files() {
10961096
10971097 p. cargo ( "vendor --respect-source-config" ) . run ( ) ;
10981098 let csum = p. read_file ( "vendor/url/.cargo-checksum.json" ) ;
1099- assert ! ( csum. contains( ".cargo_vcs_info.json" ) ) ;
1100- assert ! ( csum. contains( "Cargo.toml.orig" ) ) ;
1101- assert ! ( csum. contains( "foo.orig" ) ) ;
1102- assert ! ( csum. contains( "foo.rej" ) ) ;
1103- assert ! ( !csum. contains( ".gitignore" ) ) ;
1104- assert ! ( !csum. contains( ".gitattributes" ) ) ;
1105- assert ! ( !csum. contains( ".cargo-ok" ) ) ;
1099+ assert_e2e ( ) . eq (
1100+ csum,
1101+ str![ [ r#"
1102+ {
1103+ "files": {
1104+ ".cargo_vcs_info.json": "[..]",
1105+ "Cargo.toml": "[..]",
1106+ "Cargo.toml.orig": "[..]",
1107+ "foo.orig": "[..]",
1108+ "foo.rej": "[..]",
1109+ "src/lib.rs": "[..]"
1110+ },
1111+ "package": "[..]"
1112+ }
1113+ "# ] ]
1114+ . is_json ( ) ,
1115+ ) ;
11061116}
11071117
11081118#[ cargo_test]
You can’t perform that action at this time.
0 commit comments