Update tests

This commit is contained in:
topecongiro 2017-11-02 21:38:20 +09:00
parent b60750882a
commit 49409c0096
4 changed files with 29 additions and 12 deletions

View File

@ -0,0 +1,11 @@
// rustfmt-fn_call_style: Block
// #1547
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {
let index = *first as usize;
if index >= ENCODINGS.len() {
return;
}
let encoding = ENCODINGS[index];
dispatch_test(encoding, &data[1..]);
});

View File

@ -21,10 +21,12 @@ fn main() {
false => (),
});
loong_func().quux(move || if true {
1
} else {
2
loong_func().quux(move || {
if true {
1
} else {
2
}
});
some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {

View File

@ -23,10 +23,12 @@ fn main() {
false => (),
});
loong_func().quux(move || if true {
1
} else {
2
loong_func().quux(move || {
if true {
1
} else {
2
}
});
some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {

View File

@ -74,10 +74,12 @@ fn main() {
arg(a, b, c, d, e)
}
loong_func().quux(move || if true {
1
} else {
2
loong_func().quux(move || {
if true {
1
} else {
2
}
});
fffffffffffffffffffffffffffffffffff(a, {