diff options
author | inoas <mail@inoas.com> | 2022-08-10 11:38:54 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-08-11 09:56:08 +0100 |
commit | 81c7284468739bc64a65527d126f54fd8dff4120 (patch) | |
tree | d4b676c533ccb8598c4911ddcdde84988da5c3db | |
parent | 56f4e3da17943ebce4cf92eaddd9c0d7c476420a (diff) | |
download | gleam_stdlib-81c7284468739bc64a65527d126f54fd8dff4120.tar.gz gleam_stdlib-81c7284468739bc64a65527d126f54fd8dff4120.zip |
check for improper lists on erlang only
-rw-r--r-- | test/gleam/string_test.gleam | 16 |
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" +} |