Works without indexes

This commit is contained in:
Andras Schmelczer 2025-06-22 12:02:18 +01:00
commit f95bd43240
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
6 changed files with 206 additions and 193 deletions

View file

@ -8,35 +8,35 @@ EditedText {
operations: [
OrderedOperation {
order: 0,
operation: <delete 'hello world!' from index 0>,
operation: <delete 'hello world!'>,
},
OrderedOperation {
order: 12,
operation: <insert 'Hello, my friend!' from index 0>,
operation: <insert 'Hello, my friend!'>,
},
OrderedOperation {
order: 12,
operation: <equal ' ' from index 17>,
operation: <equal ' '>,
},
OrderedOperation {
order: 13,
operation: <equal 'How' from index 18>,
operation: <equal 'How'>,
},
OrderedOperation {
order: 16,
operation: <equal ' ' from index 21>,
operation: <equal ' '>,
},
OrderedOperation {
order: 17,
operation: <equal 'are' from index 22>,
operation: <equal 'are'>,
},
OrderedOperation {
order: 20,
operation: <delete ' you? Adam' from index 25>,
operation: <delete ' you? Adam'>,
},
OrderedOperation {
order: 31,
operation: <insert ' you doing? Albert' from index 25>,
operation: <insert ' you doing? Albert'>,
},
],
cursors: [],

View file

@ -1,5 +1,5 @@
---
source: reconcile/src/operation_transformation/edited_text.rs
source: src/operation_transformation/edited_text.rs
expression: operations
snapshot_kind: text
---
@ -8,15 +8,15 @@ EditedText {
operations: [
OrderedOperation {
order: 0,
operation: <equal 'hello' from index 0>,
operation: <equal 'hello'>,
},
OrderedOperation {
order: 5,
operation: <equal ' ' from index 5>,
operation: <equal ' '>,
},
OrderedOperation {
order: 6,
operation: <equal 'world!' from index 6>,
operation: <equal 'world!'>,
},
],
cursors: [],