Choose i128/u128 num layouts when necessary

This commit is contained in:
Ayaz Hafiz 2022-07-04 18:32:47 -04:00 committed by ayazhafiz
parent f31f78fde1
commit ba450367ca
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
5 changed files with 170 additions and 252 deletions

View file

@ -1661,3 +1661,24 @@ fn choose_u64_layout() {
"#
)
}
#[mono_test]
fn choose_i128_layout() {
indoc!(
r#"
{
a: 18446744073709551616 + 1,
b: -9223372036854775809 + 1,
}
"#
)
}
#[mono_test]
fn choose_u128_layout() {
indoc!(
r#"
170141183460469231731687303715884105728 + 1
"#
)
}