qubit-value 0.12.1

Type-safe containers for single, multi-valued, and named runtime values
Documentation
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================

use qubit_value::MultiValues;

#[test]
fn test_multi_values_generic_setter_replaces_all_values() {
    let mut values = MultiValues::String(vec!["old".to_string()]);
    let (): () = values.set(vec!["new".to_string(), "next".to_string()]);
    assert_eq!(values.get_strings().unwrap(), &["new", "next"]);

    values.set("single".to_string());
    assert_eq!(values.get_strings().unwrap(), &["single"]);
}