mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
list decrement must use capacity, not length
This commit is contained in:
parent
3fda3965ec
commit
437498b7ac
3 changed files with 19 additions and 6 deletions
|
@ -235,3 +235,18 @@ fn str_concat_first_argument_not_unique() {
|
|||
"#
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_concat_empty_list_zero_sized_type() {
|
||||
valgrind_test(indoc!(
|
||||
r#"
|
||||
(
|
||||
a = List.reserve [] 11
|
||||
b = []
|
||||
List.concat a b
|
||||
|> List.len
|
||||
|> Num.toStr
|
||||
)
|
||||
"#
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue