qubit-codec 0.11.1

Core codec traits and buffer conversion primitives for Rust
Documentation
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================

use qubit_codec::engine::EncodeUnencodableAction;

#[test]
fn test_encode_unencodable_action_constructors() {
    assert_eq!(
        EncodeUnencodableAction::<u8>::reject(),
        EncodeUnencodableAction::Reject,
    );
    assert_eq!(
        EncodeUnencodableAction::replace(7_u8),
        EncodeUnencodableAction::Replace { value: 7 },
    );
}