From b73a978b95810b188090a37e002a22403a9067bd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 22 Apr 2019 13:05:01 +0300 Subject: [PATCH] drop useless test --- crates/ra_assists/src/ast_editor.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/crates/ra_assists/src/ast_editor.rs b/crates/ra_assists/src/ast_editor.rs index 283b280b6ab..6854294ae9e 100644 --- a/crates/ra_assists/src/ast_editor.rs +++ b/crates/ra_assists/src/ast_editor.rs @@ -331,31 +331,3 @@ mod tokens { } } - -#[cfg(test)] -mod tests { - use super::*; - - use ra_syntax::SourceFile; - - #[test] - fn structure_editing() { - let file = SourceFile::parse( - "\ -fn foo() { - let s = S { - original: 92, - } -} -", - ); - let field_list = file.syntax().descendants().find_map(ast::NamedFieldList::cast).unwrap(); - let mut editor = AstEditor::new(field_list); - - let field = AstBuilder::::from_text("first_inserted: 1"); - editor.append_field(&field); - let field = AstBuilder::::from_text("second_inserted: 2"); - editor.append_field(&field); - eprintln!("{}", editor.ast().syntax()); - } -}