This commit is contained in:
Andras Schmelczer 2025-04-01 22:46:03 +01:00
commit 941100d715
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 37 additions and 12 deletions

View file

@ -2,8 +2,7 @@ mod example_document;
use std::{fs, path::Path};
use example_document::ExampleDocument;
use reconcile::{CursorPosition, TextWithCursors, reconcile, reconcile_with_cursors};
use serde::Deserialize;
use reconcile::{reconcile, reconcile_with_cursors};
#[test]
fn test_with_examples() {
@ -19,7 +18,7 @@ fn test_with_examples() {
.path();
path.file_name()
.and_then(|name| name.to_str())
.and_then(|name| name.split(".").next().unwrap().parse::<i32>().ok())
.and_then(|name| name.split('.').next().unwrap().parse::<i32>().ok())
.unwrap_or_default()
});