Files
n8n-openai-adapter/lib/elixir/test/elixir/atom_test.exs
T
2024-10-25 16:59:38 +02:00

16 lines
354 B
Elixir

Code.require_file("test_helper.exs", __DIR__)
defmodule AtomTest do
use ExUnit.Case, async: true
doctest Atom, except: [:moduledoc]
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