From 7919cd9feed35e76c84c96e88b1a7679dfc876c2 Mon Sep 17 00:00:00 2001 From: Eric Newbury Date: Fri, 21 Jan 2022 17:08:43 -0500 Subject: [PATCH] add test --- compiler/test_gen/src/gen_list.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/compiler/test_gen/src/gen_list.rs b/compiler/test_gen/src/gen_list.rs index 25985526d2..585013cc54 100644 --- a/compiler/test_gen/src/gen_list.rs +++ b/compiler/test_gen/src/gen_list.rs @@ -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); + assert_evals_to!( + "List.sortDesc [ 1,2,3,4 ]", + RocList::from_slice(&[4, 3, 2, 1]), + RocList + ); +} + #[test] #[cfg(any(feature = "gen-llvm"))] fn list_any() {