assert type sizes

This commit is contained in:
Folkert 2021-08-03 22:16:27 +02:00
parent d4896d3ed2
commit f301de5576
9 changed files with 17 additions and 21 deletions

View file

@ -4488,18 +4488,4 @@ mod solve_expr {
"RBTree {}",
);
}
#[test]
fn sizes() {
let query = (
std::mem::size_of::<roc_module::ident::TagName>(),
std::mem::size_of::<roc_types::subs::Descriptor>(),
std::mem::size_of::<roc_types::subs::Content>(),
std::mem::size_of::<roc_types::subs::FlatType>(),
std::mem::size_of::<roc_types::types::Problem>(),
);
// without RecordFields in FlatType assert_eq!((40, 72, 56, 48, 64), query)
assert_eq!((24, 104, 88, 80, 48), query)
}
}