aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-06-08 19:36:47 +0000
committerGitHub <noreply@github.com>2022-06-08 20:36:47 +0100
commit28ebbd29a171ceebe74c075f6a05ef86b727e002 (patch)
treef0b7862513577ac58eb2c64aef954c094f08bf2c /test
parentdd5a95548f43097e1aea624fc1e1576f4140f897 (diff)
downloadgleam_stdlib-28ebbd29a171ceebe74c075f6a05ef86b727e002.tar.gz
gleam_stdlib-28ebbd29a171ceebe74c075f6a05ef86b727e002.zip
fix io.debug to behave the same on Erlang and JavaScript (#308)
Diffstat (limited to 'test')
-rw-r--r--test/gleam/io_test.gleam11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/gleam/io_test.gleam b/test/gleam/io_test.gleam
new file mode 100644
index 0000000..6408127
--- /dev/null
+++ b/test/gleam/io_test.gleam
@@ -0,0 +1,11 @@
+if erlang {
+ import gleam/io
+ import gleam/should
+
+ pub fn debug_test() {
+ "io.debug-test"
+ // prints to stdout, but EUnit will suppress that:
+ |> io.debug()
+ |> should.equal("io.debug-test")
+ }
+}