thot-local 0.10.0-intermediate

Local functionality for Thot data management and analysis software.
Documentation
use super::*;
use settings_manager::result::Error as SettingsError;
use std::io;
use thot_core::result::Error as CoreError;

#[test]
fn error_from_core_error_should_work() {
    let o_err = CoreError::IoError(IoError(io::ErrorKind::Other, "test"));

    let c_err: Error = o_err.into();
    assert!(matches!(c_err, Error::IoError(_)));
}

#[test]
fn error_from_settings_manager_error_should_work() {
    let io_err = io::Error::new(io::ErrorKind::Other, "test");

    let o_err = SettingsError::IoError(io_err);
    let c_err: Error = o_err.into();
    assert!(matches!(c_err, Error::SettingsError(_)));
}