@@ -704,7 +704,10 @@ mod test {
704704
705705 #[test]
706706 fn optimized_composition() {
707− let mut state = State::new("".into());
707+ let mut state = State {
708+ doc: "".into(),
709+ selection: Selection::point(0),
710+ };
708711 let t1 = Transaction::insert(&state.doc, &state.selection, Tendril::from("h"));
709712 t1.apply(&mut state.doc);
710713 state.selection = state.selection.clone().map(t1.changes());