From 56b6a2a908cd9c1316e42daaf5c5a584f6903037 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 17 Feb 2023 10:01:40 +0100 Subject: Impl `Eq` for syntax tree types --- src/syntax/source.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/syntax/source.rs') 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, 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. -- cgit v1.2.3