mirror of https://github.com/helix-editor/helix
fix tests
parent
cd8bbbc044
commit
bb303cf41d
|
@ -704,7 +704,10 @@ mod test {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn optimized_composition() {
|
fn optimized_composition() {
|
||||||
let mut state = State::new("".into());
|
let mut state = State {
|
||||||
|
doc: "".into(),
|
||||||
|
selection: Selection::point(0),
|
||||||
|
};
|
||||||
let t1 = Transaction::insert(&state.doc, &state.selection, Tendril::from("h"));
|
let t1 = Transaction::insert(&state.doc, &state.selection, Tendril::from("h"));
|
||||||
t1.apply(&mut state.doc);
|
t1.apply(&mut state.doc);
|
||||||
state.selection = state.selection.clone().map(t1.changes());
|
state.selection = state.selection.clone().map(t1.changes());
|
||||||
|
|
Loading…
Reference in New Issue