#![cfg(target_pointer_width = "64")]
use datalogic_rs::datavalue::{DataValue, OwnedDataValue};
use std::mem::size_of;
#[test]
fn data_value_stays_small() {
assert!(
size_of::<DataValue>() <= 24,
"DataValue grew: {}",
size_of::<DataValue>()
);
}
#[test]
fn owned_data_value_stays_small() {
assert!(
size_of::<OwnedDataValue>() <= 32,
"OwnedDataValue grew: {}",
size_of::<OwnedDataValue>()
);
}
#[test]
fn error_stays_thin() {
assert!(
size_of::<datalogic_rs::ErrorKind>() <= 32,
"ErrorKind grew: {}",
size_of::<datalogic_rs::ErrorKind>()
);
assert!(
size_of::<datalogic_rs::Error>() <= 80,
"Error grew: {}",
size_of::<datalogic_rs::Error>()
);
assert!(
size_of::<datalogic_rs::Result<()>>() <= 80,
"Result<()> grew: {}",
size_of::<datalogic_rs::Result<()>>()
);
assert!(
size_of::<datalogic_rs::Result<&DataValue>>() <= 80,
"Result<&DataValue> grew: {}",
size_of::<datalogic_rs::Result<&DataValue>>()
);
}