aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/list_test.gleam6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam
index eff9fac..ff94c3b 100644
--- a/test/gleam/list_test.gleam
+++ b/test/gleam/list_test.gleam
@@ -475,3 +475,9 @@ pub fn key_set_test() {
|> list.key_set(1, 100)
|> should.equal([tuple(5, 0), tuple(4, 1), tuple(1, 100)])
}
+
+pub fn partition_test() {
+ [1, 2, 3, 4, 5, 6, 7]
+ |> list.partition(int.is_odd)
+ |> should.equal(tuple([1, 3, 5, 7], [2, 4, 6]))
+}