This commit is contained in:
Eric Newbury 2022-01-21 17:08:43 -05:00
parent a96d5e6abf
commit 7919cd9fee

View file

@ -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]
#[cfg(any(feature = "gen-llvm"))]
fn list_any() {