diff options
author | Marcin Puc <marcin.e.puc@gmail.com> | 2021-05-10 19:27:56 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-05-12 11:35:10 +0100 |
commit | d1f38c1b92f332ff338426ed7b50c3841245a617 (patch) | |
tree | 0a8b429b6be4b675918eb36447348327449e41a2 /test | |
parent | 931d4544510afa4d879ef6c5e52f4750d0812f45 (diff) | |
download | gleam_stdlib-d1f38c1b92f332ff338426ed7b50c3841245a617.tar.gz gleam_stdlib-d1f38c1b92f332ff338426ed7b50c3841245a617.zip |
Support unicode in env variables
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/os_test.gleam | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gleam/os_test.gleam b/test/gleam/os_test.gleam index 6385453..3442a90 100644 --- a/test/gleam/os_test.gleam +++ b/test/gleam/os_test.gleam @@ -15,6 +15,13 @@ pub fn env_test() { |> should.equal(Error(Nil)) } +pub fn unicode_test() { + os.insert_env("GLEAM_UNICODE_TEST", "Iñtërnâtiônà£ißætiøn☃💩") + os.get_env() + |> map.get("GLEAM_UNICODE_TEST") + |> should.equal(Ok("Iñtërnâtiônà£ißætiøn☃💩")) +} + pub fn system_time_test() { let june_12_2020 = 1591966971 { os.system_time(os.Second) > june_12_2020 } |