internal: move test

This commit is contained in:
Aleksey Kladov 2021-10-09 14:18:53 +03:00
parent 78ca43ef3d
commit 49f5fecf06
2 changed files with 49 additions and 11 deletions

View file

@ -822,14 +822,6 @@ mod tests {
assert_eq!(tt.delimiter_kind(), Some(tt::DelimiterKind::Brace));
}
#[test]
fn test_token_tree_multi_char_punct() {
let source_file = ast::SourceFile::parse("struct Foo { a: x::Y }").ok().unwrap();
let struct_def = source_file.syntax().descendants().find_map(ast::Struct::cast).unwrap();
let tt = syntax_node_to_token_tree(struct_def.syntax()).0;
token_tree_to_syntax_node(&tt, ParserEntryPoint::Item).unwrap();
}
#[test]
fn test_missing_closing_delim() {
let source_file = ast::SourceFile::parse("m!(x").tree();