//! Tests for `bms_rs::chart`.
//!
//! Unified time precision evaluation criterion:
//! - All time-related assertions must have absolute error less than 1 microsecond (0.000001s)
//! - Use [`assert_time_close`] function for unified time precision evaluation
/// Unified time precision evaluation constant: 1 microsecond (unit: seconds)
pub const MICROSECOND_EPSILON: f64 = 1e-6;
/// Assert that two floating-point time values are equal within 1 microsecond error margin
///
/// # Parameters
/// - `expected`: Expected value
/// - `actual`: Actual value
/// - `msg`: Error message description
///
/// # Assertion condition
/// `(expected - actual).abs() < 1e-6`
///
/// # Example
/// ```ignore
/// assert_time_close(1.5, actual, "activate_time");
/// ```
pub