diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs index df57bbe8c..ba41cbc5a 100644 --- a/helix-lsp/src/lib.rs +++ b/helix-lsp/src/lib.rs @@ -1032,7 +1032,8 @@ mod tests { let mut source = Rope::from_str("[\n\"πŸ‡ΊπŸ‡Έ\",\n\"πŸŽ„\",\n]"); - let transaction = generate_transaction_from_edits(&source, edits, OffsetEncoding::Utf8); + let transaction = generate_transaction_from_edits(&source, edits, OffsetEncoding::Utf16); assert!(transaction.apply(&mut source)); + assert_eq!(source, "[\n \"πŸ‡ΊπŸ‡Έ\",\n \"πŸŽ„\",\n]"); } }