diff options
author | Louis Pilfold <louis@lpil.uk> | 2020-04-24 23:36:29 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-04-24 23:36:29 +0100 |
commit | b688779c0859ef9da2569bc77475457786fdc490 (patch) | |
tree | ff9910f036486f79424254ce0c0b0e8916056b62 /gen/test/gleam@atom_test.erl | |
parent | 6b34f8b616d4ec169ebf8d1e5a26d78ceebc8a59 (diff) | |
download | gleam_stdlib-b688779c0859ef9da2569bc77475457786fdc490.tar.gz gleam_stdlib-b688779c0859ef9da2569bc77475457786fdc490.zip |
Initial map documentation
Diffstat (limited to 'gen/test/gleam@atom_test.erl')
-rw-r--r-- | gen/test/gleam@atom_test.erl | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gen/test/gleam@atom_test.erl b/gen/test/gleam@atom_test.erl index da1f699..91a16bd 100644 --- a/gen/test/gleam@atom_test.erl +++ b/gen/test/gleam@atom_test.erl @@ -4,38 +4,40 @@ -export([from_string_test/0, create_from_string_test/0, to_string_test/0]). from_string_test() -> - gleam@should:be_ok(gleam@atom:from_string(<<"ok">>)), - gleam@should:be_ok(gleam@atom:from_string(<<"expect">>)), + gleam@should:be_ok(gleam@atom:from_string(<<"ok"/utf8>>)), + gleam@should:be_ok(gleam@atom:from_string(<<"expect"/utf8>>)), gleam@should:equal( - gleam@atom:from_string(<<"this is not an atom we have seen before">>), + gleam@atom:from_string( + <<"this is not an atom we have seen before"/utf8>> + ), {error, atom_not_loaded} ). create_from_string_test() -> gleam@should:equal( - {ok, gleam@atom:create_from_string(<<"ok">>)}, - gleam@atom:from_string(<<"ok">>) + {ok, gleam@atom:create_from_string(<<"ok"/utf8>>)}, + gleam@atom:from_string(<<"ok"/utf8>>) ), gleam@should:equal( - {ok, gleam@atom:create_from_string(<<"expect">>)}, - gleam@atom:from_string(<<"expect">>) + {ok, gleam@atom:create_from_string(<<"expect"/utf8>>)}, + gleam@atom:from_string(<<"expect"/utf8>>) ), gleam@should:equal( {ok, gleam@atom:create_from_string( - <<"this is another atom we have not seen before">> + <<"this is another atom we have not seen before"/utf8>> )}, gleam@atom:from_string( - <<"this is another atom we have not seen before">> + <<"this is another atom we have not seen before"/utf8>> ) ). to_string_test() -> gleam@should:equal( - gleam@atom:to_string(gleam@atom:create_from_string(<<"ok">>)), - <<"ok">> + gleam@atom:to_string(gleam@atom:create_from_string(<<"ok"/utf8>>)), + <<"ok"/utf8>> ), gleam@should:equal( - gleam@atom:to_string(gleam@atom:create_from_string(<<"expect">>)), - <<"expect">> + gleam@atom:to_string(gleam@atom:create_from_string(<<"expect"/utf8>>)), + <<"expect"/utf8>> ). |