diff options
author | inoas <mail@inoas.com> | 2022-06-08 19:36:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 20:36:47 +0100 |
commit | 28ebbd29a171ceebe74c075f6a05ef86b727e002 (patch) | |
tree | f0b7862513577ac58eb2c64aef954c094f08bf2c /test | |
parent | dd5a95548f43097e1aea624fc1e1576f4140f897 (diff) | |
download | gleam_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.gleam | 11 |
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") + } +} |