qubit-retry 0.9.2

Retry module, providing a feature-complete, type-safe retry management system with support for multiple delay strategies and event listeners
Documentation
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026.
 *    Haixing Hu, Qubit Co. Ltd.
 *
 *    All rights reserved.
 *
 ******************************************************************************/

use qubit_retry::AttemptPanic;

/// Verifies captured panic messages are accessible and displayable.
///
/// # Parameters
/// This test has no parameters.
///
/// # Returns
/// This test returns nothing.
#[test]
fn test_attempt_panic_message_and_display() {
    let panic = AttemptPanic::new("worker failed");

    assert_eq!(panic.message(), "worker failed");
    assert_eq!(panic.to_string(), "worker failed");
}