j2k 0.7.2

Safe public JPEG 2000 and HTJ2K CPU codec APIs with optional CUDA and Metal adapters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT OR Apache-2.0

use super::*;

#[test]
fn result_slot_mismatch_is_typed() {
    assert!(matches!(
        ensure_disjoint_result_slots(2, 1),
        Err(BatchInfrastructureError::MissingResult { index: 1 })
    ));
    assert!(matches!(
        ensure_disjoint_result_slots(1, 2),
        Err(BatchInfrastructureError::ResultIndexOutOfBounds {
            index: 1,
            job_count: 1,
        })
    ));
}