summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4036
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-4036')
-rw-r--r--src/tools/rustfmt/tests/target/issue-4036/one.rs12
-rw-r--r--src/tools/rustfmt/tests/target/issue-4036/three.rs17
-rw-r--r--src/tools/rustfmt/tests/target/issue-4036/two.rs16
3 files changed, 45 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-4036/one.rs b/src/tools/rustfmt/tests/target/issue-4036/one.rs
new file mode 100644
index 000000000..54e490b7f
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4036/one.rs
@@ -0,0 +1,12 @@
+// rustfmt-format_strings: true
+
+macro_rules! test {
+ () => {
+ fn from() {
+ None.expect(
+ "We asserted that `buffer.len()` is exactly `$n` so we can expect \
+ `ApInt::from_iter` to be successful.",
+ )
+ }
+ };
+}
diff --git a/src/tools/rustfmt/tests/target/issue-4036/three.rs b/src/tools/rustfmt/tests/target/issue-4036/three.rs
new file mode 100644
index 000000000..394dc8633
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4036/three.rs
@@ -0,0 +1,17 @@
+// rustfmt-format_strings: true
+// rustfmt-hard_tabs: true
+
+macro_rules! test {
+ () => {
+ fn from() {
+ None.expect(
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor \
+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis \
+ nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu \
+ fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in \
+ culpa qui officia deserunt mollit anim id est laborum.",
+ )
+ }
+ };
+}
diff --git a/src/tools/rustfmt/tests/target/issue-4036/two.rs b/src/tools/rustfmt/tests/target/issue-4036/two.rs
new file mode 100644
index 000000000..01cafa76b
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4036/two.rs
@@ -0,0 +1,16 @@
+// rustfmt-format_strings: true
+
+macro_rules! test {
+ () => {
+ fn from() {
+ None.expect(
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor \
+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis \
+ nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu \
+ fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in \
+ culpa qui officia deserunt mollit anim id est laborum.",
+ )
+ }
+ };
+}