Skip to content

Commit 4a7f276

Browse files
committed
update tests
1 parent a661671 commit 4a7f276

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_builtin_macros/src/format_foreign/printf

1 file changed

+3
-3
lines changed

compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ macro_rules! assert_eq_pnsat {
1313
fn test_escape() {
1414
assert_eq!(pns("has no escapes"), None);
1515
assert_eq!(pns("has no escapes, either %"), None);
16-
assert_eq!(pns("*so* has a %% escape"), Some((S::Escape, " escape")));
17-
assert_eq!(pns("%% leading escape"), Some((S::Escape, " leading escape")));
18-
assert_eq!(pns("trailing escape %%"), Some((S::Escape, "")));
16+
assert_eq!(pns("*so* has a %% escape"), Some((S::Escape((11, 13)), " escape")));
17+
assert_eq!(pns("%% leading escape"), Some((S::Escape((0, 2)), " leading escape")));
18+
assert_eq!(pns("trailing escape %%"), Some((S::Escape((16, 18)), "")));
1919
}
2020

2121
#[test]

0 commit comments

Comments
 (0)