Skip to content

Commit 72edac0

Browse files
authored
allow the tests to pass tidy
1 parent e6b386b commit 72edac0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/tools/tidy/src/style/tests.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ fn test_generate_problematic_strings() {
55
let problematic_regex = RegexSet::new(
66
generate_problematic_strings(
77
ROOT_PROBLEMATIC_CONSTS,
8-
&[('A','4'),('B','8'),('E','3'),('F','0')].iter().cloned().collect(),
8+
&[('A','4'),('B','8'),('E','3'),('0','F')].iter().cloned().collect(),// use "futile" F intentionally
99
)
1010
.as_slice(),
1111
)
1212
.unwrap();
13-
assert!(problematic_regex.is_match("524421"));// check for only "decimal" hex digits (converted to integer intentionally)
14-
assert!(problematic_regex.is_match("721077"));// check for char replacements (converted to integer intentionally)
15-
assert!(problematic_regex.is_match("8FF85"));// check for hex display but use "futile" F intentionally
13+
assert!(problematic_regex.is_match("786357"));// check with no "decimal" hex digits - converted to integer
14+
assert!(problematic_regex.is_match("589701"));// check with "decimal" replacements - converted to integer
15+
assert!(problematic_regex.is_match("8FF85"));// check for hex display
1616
assert!(!problematic_regex.is_match("1193046"));// check for non-matching value
1717
}

0 commit comments

Comments
 (0)