wasm: implement List.sortWith

This commit is contained in:
Brian Carroll 2022-07-06 00:26:17 +01:00
parent 88bcb82fef
commit f132350ef3
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
4 changed files with 146 additions and 45 deletions

View file

@ -2613,7 +2613,7 @@ fn list_range() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn list_sort_with() {
assert_evals_to!(
"List.sortWith [] Num.compare",
@ -2633,7 +2633,7 @@ fn list_sort_with() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn list_sort_asc() {
assert_evals_to!(
"List.sortAsc []",
@ -2648,7 +2648,7 @@ fn list_sort_asc() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn list_sort_desc() {
assert_evals_to!(
"List.sortDesc []",