fix wrong alignment used to (re)allocate a list

This commit is contained in:
Folkert 2023-09-15 00:46:26 +02:00
parent 5d6523f994
commit edefbe5b6b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 21 additions and 2 deletions

View file

@ -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() {