mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
internal: move test
This commit is contained in:
parent
093f99b809
commit
78ca43ef3d
2 changed files with 21 additions and 19 deletions
|
@ -797,24 +797,6 @@ mod tests {
|
|||
assert_eq!(tokens[2 + 15 + 3].0, STRING);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn stmts_token_trees_to_expr_is_err() {
|
||||
let expansion = parse_macro(
|
||||
r#"
|
||||
macro_rules! stmts {
|
||||
() => {
|
||||
let a = 0;
|
||||
let b = 0;
|
||||
let c = 0;
|
||||
let d = 0;
|
||||
}
|
||||
}
|
||||
"#,
|
||||
)
|
||||
.expand_tt("stmts!();");
|
||||
assert!(token_tree_to_syntax_node(&expansion, ParserEntryPoint::Expr).is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_token_tree_last_child_is_white_space() {
|
||||
let source_file = ast::SourceFile::parse("f!{}").ok().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue