#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;
#[test]
#[should_panic(
expected = "dhat: assertion failed: `(left == right)`\n left: `32`,\n right: `31`: oh dear 99"
)]
fn main() {
let _profiler = dhat::Profiler::builder().testing().eprint_json().build();
let _v1 = vec![1, 2, 3, 4];
let _v2 = vec![5, 6, 7, 8];
let stats = dhat::HeapStats::get();
dhat::assert_eq!(stats.curr_blocks, 2);
dhat::assert_eq!(stats.curr_bytes, 31, "oh dear {}", 99); }