config af log filter

This commit is contained in:
appflowy
2022-01-09 15:13:45 +08:00
parent 7e7254b306
commit 08a43c03d4
26 changed files with 74 additions and 46 deletions

View File

@ -55,6 +55,18 @@ async fn document_sync_insert_in_chinese() {
EditorTest::new().await.run_scripts(scripts).await;
}
#[tokio::test]
async fn document_sync_insert_with_emoji() {
let s = "😁".to_owned();
let offset = count_utf16_code_units(&s);
let scripts = vec![
InsertText("😁", 0),
InsertText("☺️", offset),
AssertJson(r#"[{"insert":"😁☺️\n"}]"#),
];
EditorTest::new().await.run_scripts(scripts).await;
}
#[tokio::test]
async fn document_sync_delete_in_english() {
let scripts = vec![