(lhs: &dyn Array, rhs: &dyn Array, expected: bool)
| 203 | |
| 204 | #[allow(clippy::eq_op)] |
| 205 | fn test_equal(lhs: &dyn Array, rhs: &dyn Array, expected: bool) { |
| 206 | // equality is symmetric |
| 207 | assert_eq!(lhs, lhs); |
| 208 | assert_eq!(rhs, rhs); |
| 209 | |
| 210 | match expected { |
| 211 | true => { |
| 212 | assert_eq!(lhs, rhs); |
| 213 | assert_eq!(rhs, lhs); |
| 214 | } |
| 215 | false => { |
| 216 | assert_ne!(lhs, rhs); |
| 217 | assert_ne!(rhs, lhs); |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | type OptionString = Option<String>; |
| 223 |
no outgoing calls
no test coverage detected