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

Function test_find_position_middle

atomic-core/src/crdt/apply/order.rs:517–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

515
516 #[test]
517 fn test_find_position_middle() {
518 let concurrent = vec![5, 10, 15];
519 assert_eq!(
520 find_insert_position(&7, &concurrent),
521 InsertPosition::After(0)
522 );
523 assert_eq!(
524 find_insert_position(&12, &concurrent),
525 InsertPosition::After(1)
526 );
527 }
528
529 #[test]
530 fn test_find_position_branch_ids() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected