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

Function test_trunk_id_ordering

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

Source from the content-addressed store, hash-verified

327
328 #[test]
329 fn test_trunk_id_ordering() {
330 let a = TrunkId::new(NodeId::new(1), 0);
331 let b = TrunkId::new(NodeId::new(1), 1);
332 let c = TrunkId::new(NodeId::new(2), 0);
333
334 assert!(a < b, "same change, lower idx comes first");
335 assert!(b < c, "lower change_id comes first");
336 }
337
338 #[test]
339 fn test_trunk_id_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected