aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/int_test.gleam10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/gleam/int_test.gleam b/test/gleam/int_test.gleam
index 22a35e9..11906db 100644
--- a/test/gleam/int_test.gleam
+++ b/test/gleam/int_test.gleam
@@ -2,6 +2,16 @@ import gleam/should
import gleam/int
import gleam/order
+pub fn absolute_value_test() {
+ 123
+ |> int.absolute_value
+ |> should.equal(123)
+
+ -123
+ |> int.absolute_value
+ |> should.equal(123)
+}
+
pub fn to_string_test() {
123
|> int.to_string