| 840 | |
| 841 | #[test] |
| 842 | fn test_unrecord_stats_merge() { |
| 843 | let mut stats1 = UnrecordStats::new(); |
| 844 | stats1.direct_unrecords = 2; |
| 845 | stats1.vertices_removed = 10; |
| 846 | |
| 847 | let mut stats2 = UnrecordStats::new(); |
| 848 | stats2.direct_unrecords = 3; |
| 849 | stats2.cascaded_unrecords = 1; |
| 850 | stats2.vertices_removed = 5; |
| 851 | |
| 852 | stats1.merge(&stats2); |
| 853 | |
| 854 | assert_eq!(stats1.direct_unrecords, 5); |
| 855 | assert_eq!(stats1.cascaded_unrecords, 1); |
| 856 | assert_eq!(stats1.vertices_removed, 15); |
| 857 | } |
| 858 | |
| 859 | // UnrecordDependencyInfo Tests |
| 860 | |