diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-17 10:01:40 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-17 10:01:40 +0100 |
| commit | 56b6a2a908cd9c1316e42daaf5c5a584f6903037 (patch) | |
| tree | 8bda950e458d1cb7473a67a976c4ce3e69750ecb /src/syntax/source.rs | |
| parent | 80e73979f3c1f22e1ed6c40df6a986f2a10d94b9 (diff) | |
Impl `Eq` for syntax tree types
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. |
