mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
assert type sizes
This commit is contained in:
parent
d4896d3ed2
commit
f301de5576
9 changed files with 17 additions and 21 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue