Include argument parentheses in range (#5)

This commit is contained in:
Micha Reiser
2023-06-07 22:26:20 +02:00
committed by Charlie Marsh
parent 5054cbe84f
commit 8a415fa61e
7 changed files with 122 additions and 8 deletions

View File

@@ -136,7 +136,6 @@ mod tests {
use super::*;
use crate::{ast, parser::ParseErrorType, Parse};
#[cfg(feature = "all-nodes-with-ranges")]
macro_rules! function_and_lambda {
($($name:ident: $code:expr,)*) => {
$(
@@ -149,6 +148,12 @@ mod tests {
}
}
#[cfg(feature = "all-nodes-with-ranges")]
function_and_lambda! {
test_function_no_args_with_ranges: "def f(): pass",
test_function_pos_args_with_ranges: "def f(a, b, c): pass",
}
#[cfg(feature = "all-nodes-with-ranges")]
function_and_lambda! {
test_function_no_args: "def f(): pass",