diff options
author | Louis Pilfold <louis@lpil.uk> | 2019-06-25 22:48:07 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-06-25 22:48:07 +0100 |
commit | 2c2541750ca4b7b604070c75c18d84be833c97d5 (patch) | |
tree | f5e63d941a1c7e2c2d4dff1d81c43fa2766308ae /test/std/atom_test.gleam | |
parent | 96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff) | |
download | gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip |
stdlib namespace std -> gleam
Diffstat (limited to 'test/std/atom_test.gleam')
-rw-r--r-- | test/std/atom_test.gleam | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/test/std/atom_test.gleam b/test/std/atom_test.gleam deleted file mode 100644 index 54e88da..0000000 --- a/test/std/atom_test.gleam +++ /dev/null @@ -1,46 +0,0 @@ -import std/atom -import std/expect - -pub fn from_string_test() { - "ok" - |> atom:from_string - |> expect:is_ok - - "expect" - |> atom:from_string - |> expect:is_ok - - "this is not an atom we have seen before" - |> atom:from_string - // |> expect:equal(_, Error(AtomNotLoaded)) - |> expect:is_error -} - -pub fn create_from_string_test() { - "ok" - |> atom:create_from_string - |> Ok - |> expect:equal(_, atom:from_string("ok")) - - "expect" - |> atom:create_from_string - |> Ok - |> expect:equal(_, atom:from_string("expect")) - - "this is another atom we have not seen before" - |> atom:create_from_string - |> Ok - |> expect:equal(_, atom:from_string("this is another atom we have not seen before")) -} - -pub fn to_string_test() { - "ok" - |> atom:create_from_string - |> atom:to_string - |> expect:equal(_, "ok") - - "expect" - |> atom:create_from_string - |> atom:to_string - |> expect:equal(_, "expect") -} |