From 24206cabfeaf90f52c8885b6cdf19403a4d08745 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 2 Mar 2025 17:53:36 +0000 Subject: [PATCH] Update insta --- ...ted_text__tests__calculate_operations.snap | 12 +++++----- ...rd_tokenizer__tests__with_snapshots-2.snap | 6 +++++ ...rd_tokenizer__tests__with_snapshots-3.snap | 15 ++++++++++++ ...rd_tokenizer__tests__with_snapshots-4.snap | 23 +++++++++++++++++++ ...word_tokenizer__tests__with_snapshots.snap | 15 ++++++++++++ 5 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-2.snap create mode 100644 backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-3.snap create mode 100644 backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-4.snap create mode 100644 backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots.snap diff --git a/backend/reconcile/src/operation_transformation/snapshots/reconcile__operation_transformation__edited_text__tests__calculate_operations.snap b/backend/reconcile/src/operation_transformation/snapshots/reconcile__operation_transformation__edited_text__tests__calculate_operations.snap index e8a04870..0630f986 100644 --- a/backend/reconcile/src/operation_transformation/snapshots/reconcile__operation_transformation__edited_text__tests__calculate_operations.snap +++ b/backend/reconcile/src/operation_transformation/snapshots/reconcile__operation_transformation__edited_text__tests__calculate_operations.snap @@ -8,19 +8,19 @@ EditedText { operations: [ OrderedOperation { order: 0, - operation: , + operation: , }, OrderedOperation { order: 0, - operation: , + operation: , }, OrderedOperation { - order: 21, - operation: , + order: 20, + operation: , }, OrderedOperation { - order: 21, - operation: , + order: 20, + operation: , }, ], } diff --git a/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-2.snap b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-2.snap new file mode 100644 index 00000000..892e524c --- /dev/null +++ b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-2.snap @@ -0,0 +1,6 @@ +--- +source: reconcile/src/tokenizer/word_tokenizer.rs +expression: "word_tokenizer(\"\")" +snapshot_kind: text +--- +[] diff --git a/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-3.snap b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-3.snap new file mode 100644 index 00000000..58d749ef --- /dev/null +++ b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-3.snap @@ -0,0 +1,15 @@ +--- +source: reconcile/src/tokenizer/word_tokenizer.rs +expression: "word_tokenizer(\" what? \")" +snapshot_kind: text +--- +[ + Token { + normalised: "what?", + original: " what?", + }, + Token { + normalised: "", + original: " ", + }, +] diff --git a/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-4.snap b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-4.snap new file mode 100644 index 00000000..4c28a7f3 --- /dev/null +++ b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots-4.snap @@ -0,0 +1,23 @@ +--- +source: reconcile/src/tokenizer/word_tokenizer.rs +expression: "word_tokenizer(\" hello, \\nwhere are you?\")" +snapshot_kind: text +--- +[ + Token { + normalised: "hello,", + original: " hello,", + }, + Token { + normalised: "where", + original: " \nwhere", + }, + Token { + normalised: "are", + original: " are", + }, + Token { + normalised: "you?", + original: " you?", + }, +] diff --git a/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots.snap b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots.snap new file mode 100644 index 00000000..206c7fee --- /dev/null +++ b/backend/reconcile/src/tokenizer/snapshots/reconcile__tokenizer__word_tokenizer__tests__with_snapshots.snap @@ -0,0 +1,15 @@ +--- +source: reconcile/src/tokenizer/word_tokenizer.rs +expression: "word_tokenizer(\"Hi there!\")" +snapshot_kind: text +--- +[ + Token { + normalised: "Hi", + original: "Hi", + }, + Token { + normalised: "there!", + original: " there!", + }, +]