mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
add test
This commit is contained in:
parent
a96d5e6abf
commit
7919cd9fee
1 changed files with 11 additions and 0 deletions
|
@ -2432,6 +2432,17 @@ fn list_sort_asc() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[cfg(any(feature = "gen-llvm"))]
|
||||||
|
fn list_sort_desc() {
|
||||||
|
assert_evals_to!("List.sortDesc []", RocList::from_slice(&[]), RocList<i64>);
|
||||||
|
assert_evals_to!(
|
||||||
|
"List.sortDesc [ 1,2,3,4 ]",
|
||||||
|
RocList::from_slice(&[4, 3, 2, 1]),
|
||||||
|
RocList<i64>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm"))]
|
||||||
fn list_any() {
|
fn list_any() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue