dbus-message-parser 4.3.1

Libary to encode and decode DBus message
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::value::{Array, ArrayError, Type, Value};

#[test]
fn array_signature_mismatch() {
    let int_32 = Value::Int32(10);
    let int_16 = Value::Int16(10);
    let array = vec![int_32, int_16];
    let type_ = Type::Int32;

    assert_eq!(
        Array::new(array, type_),
        Err(ArrayError::TypeMismatch(Type::Int32, Type::Int16,)),
    );
}