MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_leaf_id_ordering

Function test_leaf_id_ordering

atomic-core/src/crdt/ids.rs:429–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428 #[test]
429 fn test_leaf_id_ordering() {
430 let a = LeafId::new(NodeId::new(1), 0);
431 let b = LeafId::new(NodeId::new(1), 1);
432 let c = LeafId::new(NodeId::new(2), 0);
433
434 assert!(a < b);
435 assert!(b < c);
436 }
437
438 #[test]
439 fn test_leaf_id_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected