mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
an attempt at passing bigger values
This commit is contained in:
parent
529703d449
commit
3a8d4b853b
3 changed files with 60 additions and 15 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue