mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder
This commit is contained in:
commit
b1b9a8dc0a
29 changed files with 358 additions and 156 deletions
|
@ -2939,3 +2939,22 @@ fn monomorphized_lists() {
|
|||
u64
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn with_capacity() {
|
||||
// see https://github.com/rtfeldman/roc/issues/1732
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
List.withCapacity 10
|
||||
|> List.append 0u64
|
||||
|> List.append 1u64
|
||||
|> List.append 2u64
|
||||
|> List.append 3u64
|
||||
"#
|
||||
),
|
||||
RocList::from_slice(&[0, 1, 2, 3]),
|
||||
RocList<u64>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue