Add tests for #2749

This commit is contained in:
Seiichi Uchida 2018-05-30 08:09:56 +09:00
parent f390626778
commit 11835ce5ce
2 changed files with 30 additions and 0 deletions

View file

@ -194,3 +194,13 @@ macro_rules! m {
($x:) => {};
($($foo:expr)()?) => {};
}
// #2749
macro_rules! foo {
($(x)* {}) => {};
($(x)* ()) => {};
($(x)* []) => {};
}
macro_rules! __wundergraph_expand_sqlite_mutation {
( $mutation_name:ident $((context = $($context:tt)*))*{ $( $entity_name:ident( $(insert = $insert:ident,)* $(update = $update:ident,)* $(delete = $($delete:tt)+)* ), )* } ) => {};
}

View file

@ -226,3 +226,23 @@ macro_rules! m {
($x:) => {};
($($foo:expr)()?) => {};
}
// #2749
macro_rules! foo {
($(x)* {}) => {};
($(x)*()) => {};
($(x)*[]) => {};
}
macro_rules! __wundergraph_expand_sqlite_mutation {
(
$mutation_name:ident $((context = $($context:tt)*))* {
$(
$entity_name:ident(
$(insert = $insert:ident,)*
$(update = $update:ident,)*
$(delete = $($delete:tt)+)*
),
)*
}
) => {};
}