aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index 8dff65e..0637bdd 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -793,11 +793,13 @@ if erlang {
}
}
-pub fn improper_list_inspect_test() {
- let list = improper_list_append(1, 2)
- assert "[1, ..2]" = string.inspect(list)
-}
+if erlang {
+ pub fn improper_list_inspect_test() {
+ let list = improper_list_append(1, 2)
+ assert "[1, ..2]" = string.inspect(list)
+ }
-// Warning: The type of this function is incorrect
-external fn improper_list_append(anything1, anything2) -> List(anything) =
- "gleam_stdlib_test_ffi" "improper_list_append"
+ // Warning: The type of this function is incorrect
+ external fn improper_list_append(anything1, anything2) -> List(anything) =
+ "gleam_stdlib_test_ffi" "improper_list_append"
+}