()
| 930 | |
| 931 | #[test] |
| 932 | fn test_tracker_add() { |
| 933 | let mut tracker = CrdtConflictTracker::new(); |
| 934 | tracker.add(CrdtConflict::new( |
| 935 | ConflictKind::ConcurrentInsert, |
| 936 | "test".to_string(), |
| 937 | )); |
| 938 | |
| 939 | assert!(tracker.has_conflicts()); |
| 940 | assert_eq!(tracker.count(), 1); |
| 941 | } |
| 942 | |
| 943 | #[test] |
| 944 | fn test_tracker_add_simple() { |