mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-02 02:17:44 +03:00
LSP: Fix offset encoding test case
Co-authored-by: Isaac Mills <rooster0055@protonmail.com>
This commit is contained in:
parent
b423ed42f1
commit
c4d314d7ba
1 changed files with 2 additions and 1 deletions
|
@ -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]");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue