mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 21:07:43 +00:00
11 lines
204 B
Rust
11 lines
204 B
Rust
|
use loro::LoroDoc;
|
||
|
|
||
|
#[test]
|
||
|
fn update_text() {
|
||
|
let doc = LoroDoc::new();
|
||
|
let text = doc.get_text("text");
|
||
|
text.update("ϼCCC");
|
||
|
text.update("2");
|
||
|
assert_eq!(&text.to_string(), "2");
|
||
|
}
|