internal: move tests

This commit is contained in:
Aleksey Kladov 2021-10-09 14:22:49 +03:00
parent 49f5fecf06
commit 1abe3f8275
2 changed files with 20 additions and 8 deletions

View file

@ -821,12 +821,4 @@ mod tests {
let tt = syntax_node_to_token_tree(token_tree.syntax()).0;
assert_eq!(tt.delimiter_kind(), Some(tt::DelimiterKind::Brace));
}
#[test]
fn test_missing_closing_delim() {
let source_file = ast::SourceFile::parse("m!(x").tree();
let node = source_file.syntax().descendants().find_map(ast::TokenTree::cast).unwrap();
let tt = syntax_node_to_token_tree(node.syntax()).0.to_string();
assert_eq_text!(&*tt, "( x");
}
}