aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-08-10 11:38:54 +0200
committerLouis Pilfold <louis@lpil.uk>2022-08-11 09:56:08 +0100
commit81c7284468739bc64a65527d126f54fd8dff4120 (patch)
treed4b676c533ccb8598c4911ddcdde84988da5c3db
parent56f4e3da17943ebce4cf92eaddd9c0d7c476420a (diff)
downloadgleam_stdlib-81c7284468739bc64a65527d126f54fd8dff4120.tar.gz
gleam_stdlib-81c7284468739bc64a65527d126f54fd8dff4120.zip
check for improper lists on erlang only
-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"
+}