add tests that fail because of comma insertion

Signed-off-by: Ryan1729 <Ryan1729@gmail.com>
This commit is contained in:
Ryan1729 2017-04-03 16:15:11 -06:00
parent f63815ee95
commit 822b266a3d
2 changed files with 46 additions and 0 deletions

View File

@ -109,3 +109,14 @@ fn function_calls() {
span.lo,
span.hi)
}
fn macros() {
baz!(do_not, add, trailing, commas, inside, of, function, like, macros, even, if_they, are, long);
baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong);
let _ = match option {
None => baz!(function, like, macro_as, expression, which, is, loooooooooooooooong),
Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong),
};
}

View File

@ -149,3 +149,38 @@ fn function_calls() {
span.hi,
)
}
fn macros() {
baz!(
do_not,
add,
trailing,
commas,
inside,
of,
function,
like,
macros,
even,
if_they,
are,
long
);
baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong);
let _ = match option {
None => {
baz!(
function,
like,
macro_as,
expression,
which,
is,
loooooooooooooooong
)
}
Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong),
};
}