mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
16 lines
340 B
Rust
16 lines
340 B
Rust
use lib_ot::core::{DocumentTree, TransactionBuilder};
|
|
|
|
#[test]
|
|
fn main() {
|
|
// Create a new arena
|
|
let _document = DocumentTree::new();
|
|
}
|
|
|
|
#[test]
|
|
fn test_documents() {
|
|
let mut document = DocumentTree::new();
|
|
let tb = TransactionBuilder::new(&document);
|
|
let transaction = tb.finalize();
|
|
document.apply(transaction);
|
|
}
|