aboutsummaryrefslogtreecommitdiff
path: root/test/gleam/int_test.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'test/gleam/int_test.gleam')
-rw-r--r--test/gleam/int_test.gleam11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/gleam/int_test.gleam b/test/gleam/int_test.gleam
index cd7b2b9..22a35e9 100644
--- a/test/gleam/int_test.gleam
+++ b/test/gleam/int_test.gleam
@@ -190,3 +190,14 @@ pub fn sum_test() {
int.sum([1, 2, 3])
|> should.equal(6)
}
+
+pub fn product_test() {
+ int.product([])
+ |> should.equal(0)
+
+ int.product([4])
+ |> should.equal(4)
+
+ int.product([1, 2, 3])
+ |> should.equal(6)
+}