aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libeditor/tests')
-rw-r--r--crates/libeditor/tests/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs
index cc4226710..a2e26003a 100644
--- a/crates/libeditor/tests/test.rs
+++ b/crates/libeditor/tests/test.rs
@@ -5,7 +5,7 @@ extern crate assert_eq_text;
5 5
6use assert_eq_text::{assert_eq_dbg}; 6use assert_eq_text::{assert_eq_dbg};
7use libeditor::{ 7use libeditor::{
8 File, TextUnit, TextRange, ActionResult, CursorPosition, 8 ParsedFile, TextUnit, TextRange, ActionResult, CursorPosition,
9 highlight, runnables, extend_selection, file_structure, 9 highlight, runnables, extend_selection, file_structure,
10 flip_comma, add_derive, matching_brace, 10 flip_comma, add_derive, matching_brace,
11}; 11};
@@ -146,11 +146,11 @@ fn test_matching_brace() {
146 ); 146 );
147} 147}
148 148
149fn file(text: &str) -> File { 149fn file(text: &str) -> ParsedFile {
150 File::parse(text) 150 ParsedFile::parse(text)
151} 151}
152 152
153fn check_action<F: Fn(&File, TextUnit) -> Option<ActionResult>>( 153fn check_action<F: Fn(&ParsedFile, TextUnit) -> Option<ActionResult>>(
154 before: &str, 154 before: &str,
155 after: &str, 155 after: &str,
156 f: F, 156 f: F,