qubit-value 0.11.0

Type-safe containers for single, multi-valued, and named runtime values
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================

//! Tests strict scalar reads.

use qubit_value::Value;

/// Verifies strict reads return the value when the requested type matches.
#[test]
fn test_strict_value_read_returns_matching_value() {
    let value = Value::Int32(7);
    assert_eq!(value.get::<i32>().expect("matching type must be readable"), 7);
}