mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
fix wrong alignment used to (re)allocate a list
This commit is contained in:
parent
5d6523f994
commit
edefbe5b6b
3 changed files with 21 additions and 2 deletions
|
@ -95,6 +95,22 @@ fn dec_list_literal() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn dec_list_join() {
|
||||
assert_evals_to!(
|
||||
"List.concat [1.0dec, 2.0] [3.0, 4.0, 5.0]",
|
||||
RocList::from_slice(&[
|
||||
RocDec::from(1),
|
||||
RocDec::from(2),
|
||||
RocDec::from(3),
|
||||
RocDec::from(4),
|
||||
RocDec::from(5),
|
||||
]),
|
||||
RocList<RocDec>
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn bool_list_concat() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue