()
| 37 | |
| 38 | #[test] |
| 39 | fn test_null_equal() { |
| 40 | let a = NullArray::new(12); |
| 41 | let b = NullArray::new(12); |
| 42 | test_equal(&a, &b, true); |
| 43 | |
| 44 | let b = NullArray::new(10); |
| 45 | test_equal(&a, &b, false); |
| 46 | |
| 47 | // Test the case where offset != 0 |
| 48 | |
| 49 | let a_slice = a.slice(2, 3); |
| 50 | let b_slice = b.slice(1, 3); |
| 51 | test_equal(&a_slice, &b_slice, true); |
| 52 | |
| 53 | let a_slice = a.slice(5, 4); |
| 54 | let b_slice = b.slice(3, 3); |
| 55 | test_equal(&a_slice, &b_slice, false); |
| 56 | } |
| 57 | |
| 58 | #[test] |
| 59 | fn test_boolean_equal() { |
nothing calls this directly
no test coverage detected