Skip to content

Commit

Permalink
Fix tests broken by the State change
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Aug 26, 2021
1 parent 2891989 commit 68bf9fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-core/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,9 @@ mod test {

#[test]
fn transaction_change() {
let mut doc = Rope::from("hello world!\ntest 123".into());
let mut doc = Rope::from("hello world!\ntest 123");
let transaction = Transaction::change(
&state.doc,
&doc,
// (1, 1, None) is a useless 0-width delete
vec![(1, 1, None), (6, 11, Some("void".into())), (12, 17, None)].into_iter(),
);
Expand All @@ -701,7 +701,7 @@ mod test {

#[test]
fn changes_iter() {
let doc = Rope::from("hello world!\ntest 123".into());
let doc = Rope::from("hello world!\ntest 123");
let changes = vec![(6, 11, Some("void".into())), (12, 17, None)];
let transaction = Transaction::change(&doc, changes.clone().into_iter());
assert_eq!(transaction.changes_iter().collect::<Vec<_>>(), changes);
Expand Down

0 comments on commit 68bf9fd

Please sign in to comment.