@@ -101,7 +101,7 @@ mod test {
101101 // Need to commit before applying!
102102 history.commit_revision(&transaction1, &state);
103103 transaction1.apply(&mut state);
104− assert_eq!("hello world!", state.doc());
104+ assert_eq!("hello world!", state.doc);
105105
106106 // ---
107107
@@ -111,7 +111,7 @@ mod test {
111111 // Need to commit before applying!
112112 history.commit_revision(&transaction2, &state);
113113 transaction2.apply(&mut state);
114− assert_eq!("hello 世界!", state.doc());
114+ assert_eq!("hello 世界!", state.doc);
115115
116116 // ---
117117 fn undo(history: &mut History, state: &mut State) {
@@ -126,15 +126,15 @@ mod test {
126126 }
127127
128128 undo(&mut history, &mut state);
129− assert_eq!("hello world!", state.doc());
129+ assert_eq!("hello world!", state.doc);
130130 redo(&mut history, &mut state);
131− assert_eq!("hello 世界!", state.doc());
131+ assert_eq!("hello 世界!", state.doc);
132132 undo(&mut history, &mut state);
133133 undo(&mut history, &mut state);
134− assert_eq!("hello", state.doc());
134+ assert_eq!("hello", state.doc);
135135
136136 // undo at root is a no-op
137137 undo(&mut history, &mut state);
138− assert_eq!("hello", state.doc());
138+ assert_eq!("hello", state.doc);
139139 }
140140}