loro/crates/fuzz/tests/update_text.rs

11 lines
262 B
Rust
Raw Normal View History

use loro::LoroDoc;
#[test]
fn update_text() {
let doc = LoroDoc::new();
let text = doc.get_text("text");
text.update("ϼCCC", Default::default()).unwrap();
text.update("2", Default::default()).unwrap();
assert_eq!(&text.to_string(), "2");
}