@@ -101,7 +101,7 @@ mod test {
101 // Need to commit before applying!
101 // Need to commit before applying!
102 history.commit_revision(&transaction1, &state);
102 history.commit_revision(&transaction1, &state);
103 transaction1.apply(&mut state);
103 transaction1.apply(&mut state);
104− assert_eq!("hello world!", state.doc());
104+ assert_eq!("hello world!", state.doc);
@@ -111,7 +111,7 @@ mod test {
111 // Need to commit before applying!
111 // Need to commit before applying!
112 history.commit_revision(&transaction2, &state);
112 history.commit_revision(&transaction2, &state);
113 transaction2.apply(&mut state);
113 transaction2.apply(&mut state);
114− assert_eq!("hello 世界!", state.doc());
114+ assert_eq!("hello 世界!", state.doc);
117 fn undo(history: &mut History, state: &mut State) {
117 fn undo(history: &mut History, state: &mut State) {
@@ -126,15 +126,15 @@ mod test {
128 undo(&mut history, &mut state);
128 undo(&mut history, &mut state);
129− assert_eq!("hello world!", state.doc());
129+ assert_eq!("hello world!", state.doc);
130 redo(&mut history, &mut state);
130 redo(&mut history, &mut state);
131− assert_eq!("hello 世界!", state.doc());
131+ assert_eq!("hello 世界!", state.doc);
132 undo(&mut history, &mut state);
132 undo(&mut history, &mut state);
133 undo(&mut history, &mut state);
133 undo(&mut history, &mut state);
134− assert_eq!("hello", state.doc());
134+ assert_eq!("hello", state.doc);
136 // undo at root is a no-op
136 // undo at root is a no-op
137 undo(&mut history, &mut state);
137 undo(&mut history, &mut state);
138− assert_eq!("hello", state.doc());
138+ assert_eq!("hello", state.doc);