Code.require_file("test_helper.exs", __DIR__)

defmodule AtomTest do
  use ExUnit.Case, async: true

  doctest Atom

  test "to_string/1" do
    assert "héllo" |> String.to_atom() |> Atom.to_string() == "héllo"
  end

  test "to_charlist/1" do
    assert "héllo" |> String.to_atom() |> Atom.to_charlist() == ~c"héllo"
  end
end
