Add some tests I forgot about earlier
This commit is contained in:
parent
4be12fa5d6
commit
9c34986bab
7
tests/source/configs/format_macro_bodies/false.rs
Normal file
7
tests/source/configs/format_macro_bodies/false.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// rustfmt-format_macro_bodies: false
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => { $a(42): $b; };
|
||||
($a: ident $b: ident $c: ident) => { $a=$b+$c; };
|
||||
}
|
||||
|
7
tests/source/configs/format_macro_bodies/true.rs
Normal file
7
tests/source/configs/format_macro_bodies/true.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// rustfmt-format_macro_bodies: true
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => { $a(42): $b; };
|
||||
($a: ident $b: ident $c: ident) => { $a=$b+$c; };
|
||||
}
|
||||
|
7
tests/source/configs/format_macro_matchers/false.rs
Normal file
7
tests/source/configs/format_macro_matchers/false.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// rustfmt-format_macro_matchers: false
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => { $a(42): $b; };
|
||||
($a: ident $b: ident $c: ident) => { $a=$b+$c; };
|
||||
}
|
||||
|
6
tests/source/configs/format_macro_matchers/true.rs
Normal file
6
tests/source/configs/format_macro_matchers/true.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// rustfmt-format_macro_matchers: true
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => { $a(42): $b; };
|
||||
($a: ident $b: ident $c: ident) => { $a=$b+$c; };
|
||||
}
|
6
tests/target/configs/format_macro_bodies/false.rs
Normal file
6
tests/target/configs/format_macro_bodies/false.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// rustfmt-format_macro_bodies: false
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => { $a(42): $b; };
|
||||
($a: ident $b: ident $c: ident) => { $a=$b+$c; };
|
||||
}
|
10
tests/target/configs/format_macro_bodies/true.rs
Normal file
10
tests/target/configs/format_macro_bodies/true.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// rustfmt-format_macro_bodies: true
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => {
|
||||
$a(42): $b;
|
||||
};
|
||||
($a: ident $b: ident $c: ident) => {
|
||||
$a = $b + $c;
|
||||
};
|
||||
}
|
10
tests/target/configs/format_macro_matchers/false.rs
Normal file
10
tests/target/configs/format_macro_matchers/false.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// rustfmt-format_macro_matchers: false
|
||||
|
||||
macro_rules! foo {
|
||||
($a: ident : $b: ty) => {
|
||||
$a(42): $b;
|
||||
};
|
||||
($a: ident $b: ident $c: ident) => {
|
||||
$a = $b + $c;
|
||||
};
|
||||
}
|
10
tests/target/configs/format_macro_matchers/true.rs
Normal file
10
tests/target/configs/format_macro_matchers/true.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// rustfmt-format_macro_matchers: true
|
||||
|
||||
macro_rules! foo {
|
||||
($a:ident : $b:ty) => {
|
||||
$a(42): $b;
|
||||
};
|
||||
($a:ident $b:ident $c:ident) => {
|
||||
$a = $b + $c;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user