Added type size test for LocalAllocator

parent 3a7d49f7
Pipeline #39387571 passed with stages
in 15 minutes and 1 second
......@@ -311,6 +311,7 @@ mod tests {
use immix::global_allocator::GlobalAllocator;
use object::Object;
use object_value;
use std::mem;
use vm::state::{RcState, State};
fn local_allocator() -> (RcState, LocalAllocator) {
......@@ -541,4 +542,11 @@ mod tests {
assert_eq!(ptr1.is_marked(), false);
}
#[test]
fn test_type_size() {
// This test is put in place to ensure that the type size doesn't change
// unexpectedly.
assert_eq!(mem::size_of::<LocalAllocator>(), 296);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment