mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-30 15:18:02 +00:00
Format
This commit is contained in:
parent
f96642aac4
commit
b9d283fd2d
2 changed files with 12 additions and 12 deletions
|
@ -636,7 +636,6 @@ class Foo(A, B):
|
||||||
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
|
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "all-nodes-with-ranges")]
|
#[cfg(feature = "all-nodes-with-ranges")]
|
||||||
fn test_parse_class_generic_types() {
|
fn test_parse_class_generic_types() {
|
||||||
|
@ -895,7 +894,6 @@ except* OSError as e:
|
||||||
assert!(parse(source, Mode::Interactive, "<embedded>").is_ok());
|
assert!(parse(source, Mode::Interactive, "<embedded>").is_ok());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "all-nodes-with-ranges")]
|
#[cfg(feature = "all-nodes-with-ranges")]
|
||||||
fn test_parse_type_declaration() {
|
fn test_parse_type_declaration() {
|
||||||
|
@ -925,7 +923,10 @@ print(type(12))
|
||||||
|
|
||||||
use crate::lexer::lex;
|
use crate::lexer::lex;
|
||||||
let lexer = lex(source, Mode::Module);
|
let lexer = lex(source, Mode::Module);
|
||||||
println!("tokens {:#?}", lexer.map(|x| x.unwrap().0).collect::<Vec<_>>());
|
println!(
|
||||||
|
"tokens {:#?}",
|
||||||
|
lexer.map(|x| x.unwrap().0).collect::<Vec<_>>()
|
||||||
|
);
|
||||||
|
|
||||||
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
|
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,6 @@ where
|
||||||
next = Some(Ok((soft_to_name(tok), *range)));
|
next = Some(Ok((soft_to_name(tok), *range)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue