Add tests for binop_separator = Back
This commit is contained in:
parent
a5138b34d5
commit
e3203ef5e6
14
tests/source/binop-separator-back/bitwise.rs
Normal file
14
tests/source/binop-separator-back/bitwise.rs
Normal file
@ -0,0 +1,14 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ^ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ & abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ << abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ >> abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
}
|
23
tests/source/binop-separator-back/comp.rs
Normal file
23
tests/source/binop-separator-back/comp.rs
Normal file
@ -0,0 +1,23 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ < abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ {
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ <= abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ {
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ > abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ {
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ >= abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ {
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ == abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ {
|
||||
//
|
||||
}
|
||||
}
|
7
tests/source/binop-separator-back/logic.rs
Normal file
7
tests/source/binop-separator-back/logic.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ && abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ || abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ {
|
||||
//
|
||||
}
|
||||
}
|
7
tests/source/binop-separator-back/math.rs
Normal file
7
tests/source/binop-separator-back/math.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ * abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ - abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ / abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ * abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ * abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ / abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ / abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
}
|
9
tests/source/binop-separator-back/patterns.rs
Normal file
9
tests/source/binop-separator-back/patterns.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
match val {
|
||||
ThisIsA::ReallyLongPatternNameToHelpOverflowTheNextValueOntoTheNextLine | ThisIsA::SecondValueSeparatedByAPipe | ThisIsA::ThirdValueSeparatedByAPipe => {
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
7
tests/source/binop-separator-back/range.rs
Normal file
7
tests/source/binop-separator-back/range.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ..abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ..=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
}
|
18
tests/target/binop-separator-back/bitwise.rs
Normal file
18
tests/target/binop-separator-back/bitwise.rs
Normal file
@ -0,0 +1,18 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ^
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ <<
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ >>
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
}
|
33
tests/target/binop-separator-back/comp.rs
Normal file
33
tests/target/binop-separator-back/comp.rs
Normal file
@ -0,0 +1,33 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ <
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ <=
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ >
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ >=
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ==
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
10
tests/target/binop-separator-back/logic.rs
Normal file
10
tests/target/binop-separator-back/logic.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
if abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &&
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ||
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
23
tests/target/binop-separator-back/math.rs
Normal file
23
tests/target/binop-separator-back/math.rs
Normal file
@ -0,0 +1,23 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ *
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ /
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ *
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ *
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ /
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ /
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ +
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
}
|
11
tests/target/binop-separator-back/patterns.rs
Normal file
11
tests/target/binop-separator-back/patterns.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
match val {
|
||||
ThisIsA::ReallyLongPatternNameToHelpOverflowTheNextValueOntoTheNextLine |
|
||||
ThisIsA::SecondValueSeparatedByAPipe |
|
||||
ThisIsA::ThirdValueSeparatedByAPipe => {
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
9
tests/target/binop-separator-back/range.rs
Normal file
9
tests/target/binop-separator-back/range.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// rustfmt-binop_separator: Back
|
||||
|
||||
fn main() {
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ..
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
|
||||
let value = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ..=
|
||||
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user