()
| 77 | |
| 78 | #[test] |
| 79 | fn bbox_extend_grows_bounds() { |
| 80 | let mut a = BBox { |
| 81 | min: vec![DomainBound::Int64(0)], |
| 82 | max: vec![DomainBound::Int64(10)], |
| 83 | }; |
| 84 | let b = BBox { |
| 85 | min: vec![DomainBound::Int64(-5)], |
| 86 | max: vec![DomainBound::Int64(20)], |
| 87 | }; |
| 88 | a.extend(&b); |
| 89 | assert_eq!(a.min[0], DomainBound::Int64(-5)); |
| 90 | assert_eq!(a.max[0], DomainBound::Int64(20)); |
| 91 | } |
| 92 | |
| 93 | #[test] |
| 94 | fn bbox_extend_from_empty_takes_other() { |