molframe-spatial 0.2.1

Deterministic spatial indices and neighbour search for molframe
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

#[test]
fn resource_and_cancellation_failures_do_not_masquerade_as_bad_selection_values() {
    let memory = SpatialError::Memory(molframe_core::MemoryBudgetError::Exhausted {
        requested: 100,
        available: 10,
    });
    assert_eq!(memory.into_diagnostic().code(), Code::E1901);
    assert_eq!(
        SpatialError::Cancelled.into_diagnostic().code(),
        Code::E1904
    );
}