isn/test/isn/ismn_test.exs

19 lines
377 B
Elixir
Raw Normal View History

2016-01-10 11:12:38 +00:00
defmodule ISN.ISMNTest do
use ExUnit.Case, async: true
@test_ismn "M-060-11561-5"
test "cast" do
2016-01-10 11:12:38 +00:00
assert ISN.ISMN.cast(@test_ismn) == {:ok, @test_ismn}
assert ISN.ISMN.cast(nil) == :error
end
test "load" do
2016-01-10 11:12:38 +00:00
assert ISN.ISMN.load(@test_ismn) == {:ok, @test_ismn}
end
test "dump" do
2016-01-10 11:12:38 +00:00
assert ISN.ISMN.dump(@test_ismn) == {:ok, @test_ismn}
end
end