Merge branch 'trunk' into store-bool-closure-as-unit

This commit is contained in:
Richard Feldman 2021-08-14 16:47:42 -04:00 committed by GitHub
commit bb7726b0e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 315 additions and 342 deletions

View file

@ -276,6 +276,20 @@ fn list_prepend() {
RocList::from_slice(&[6, 4]),
RocList<i64>
);
assert_evals_to!(
indoc!(
r#"
init : List Str
init =
["foo"]
List.prepend init "bar"
"#
),
RocList::from_slice(&[RocStr::from_slice(b"bar"), RocStr::from_slice(b"foo"),]),
RocList<RocStr>
);
}
#[test]