an attempt at passing bigger values

This commit is contained in:
Folkert 2023-09-18 18:51:17 +02:00
parent 529703d449
commit 3a8d4b853b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 60 additions and 15 deletions

View file

@ -3332,6 +3332,16 @@ fn box_num() {
assert_evals_to!("Box.box 123u64", RocBox::new(123), RocBox<u64>)
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn box_record() {
assert_evals_to!(
"Box.box { x: 1u64, y: 2u64 }",
RocBox::new((1u64, 2u64)),
RocBox<(u64, u64)>
);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn box_str() {