@@ -46,22 +46,13 @@ fn compare_baseline_with_ours() {
46
46
let dir = git_testtools:: scripted_fixture_repo_read_only ( "make_baseline.sh" ) . unwrap ( ) ;
47
47
let ( mut total_matches, mut total_correct, mut panics) = ( 0 , 0 , 0 ) ;
48
48
let mut mismatches = Vec :: new ( ) ;
49
- for ( input_file, mut expected_matches, case, invert_expectation_on_other_os) in & [
50
- ( "git-baseline.match" , true , pattern:: Case :: Sensitive , false ) ,
51
- ( "git-baseline.nmatch" , false , pattern:: Case :: Sensitive , false ) ,
52
- ( "git-baseline.match-icase" , true , pattern:: Case :: Fold , false ) ,
53
- // (
54
- // "git-baseline-unix.match",
55
- // true,
56
- // pattern::Case::Sensitive,
57
- // if cfg!(unix) { false } else { true },
58
- // ),
49
+ for ( input_file, expected_matches, case) in & [
50
+ ( "git-baseline.match" , true , pattern:: Case :: Sensitive ) ,
51
+ ( "git-baseline.nmatch" , false , pattern:: Case :: Sensitive ) ,
52
+ ( "git-baseline.match-icase" , true , pattern:: Case :: Fold ) ,
59
53
] {
60
54
let input = std:: fs:: read ( dir. join ( * input_file) ) . unwrap ( ) ;
61
55
let mut seen = BTreeSet :: default ( ) ;
62
- if * invert_expectation_on_other_os {
63
- expected_matches = !expected_matches;
64
- }
65
56
66
57
for m @ GitMatch {
67
58
pattern,
@@ -72,7 +63,7 @@ fn compare_baseline_with_ours() {
72
63
total_matches += 1 ;
73
64
assert ! ( seen. insert( m) , "duplicate match entry: {:?}" , m) ;
74
65
assert_eq ! (
75
- is_match, expected_matches,
66
+ is_match, * expected_matches,
76
67
"baseline for matches must be {} - check baseline and git version: {:?}" ,
77
68
expected_matches, m
78
69
) ;
0 commit comments