diff options
Diffstat (limited to 'src/syntax/source.rs')
| -rw-r--r-- | src/syntax/source.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syntax/source.rs b/src/syntax/source.rs index 63509dc8..f00d779b 100644 --- a/src/syntax/source.rs +++ b/src/syntax/source.rs @@ -406,6 +406,8 @@ mod tests { #[test] fn test_source_file_edit() { + // This tests only the non-parser parts. The reparsing itself is + // tested separately. #[track_caller] fn test(prev: &str, range: Range<usize>, with: &str, after: &str) { let mut source = Source::detached(prev); @@ -413,7 +415,6 @@ mod tests { source.edit(range, with); assert_eq!(source.text, result.text); assert_eq!(source.lines, result.lines); - assert_eq!(*source.root, *result.root); } // Test inserting at the begining. |
