diff options
| author | David Renshaw <dwrenshaw@gmail.com> | 2021-12-31 12:51:27 -0500 |
|---|---|---|
| committer | David Renshaw <dwrenshaw@gmail.com> | 2021-12-31 12:51:27 -0500 |
| commit | 4a7f276cb67673ad2550ee7ef91caa0706565679 (patch) | |
| tree | 6256442ecd51221a33dc9f5d3be76aa379cb6db6 | |
| parent | a661671ae37eece708d894eb25d58ec7dd2fd9a7 (diff) | |
| download | rust-4a7f276cb67673ad2550ee7ef91caa0706565679.tar.gz rust-4a7f276cb67673ad2550ee7ef91caa0706565679.zip | |
update tests
| -rw-r--r-- | compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs b/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs index 1336aab7316..fc7442470ac 100644 --- a/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs +++ b/compiler/rustc_builtin_macros/src/format_foreign/printf/tests.rs @@ -13,9 +13,9 @@ macro_rules! assert_eq_pnsat { fn test_escape() { assert_eq!(pns("has no escapes"), None); assert_eq!(pns("has no escapes, either %"), None); - assert_eq!(pns("*so* has a %% escape"), Some((S::Escape, " escape"))); - assert_eq!(pns("%% leading escape"), Some((S::Escape, " leading escape"))); - assert_eq!(pns("trailing escape %%"), Some((S::Escape, ""))); + assert_eq!(pns("*so* has a %% escape"), Some((S::Escape((11, 13)), " escape"))); + assert_eq!(pns("%% leading escape"), Some((S::Escape((0, 2)), " leading escape"))); + assert_eq!(pns("trailing escape %%"), Some((S::Escape((16, 18)), ""))); } #[test] |
