Fix RDF.Literal.new/1 test with custom datatypes

This commit is contained in:
Marcel Otto 2020-10-09 16:39:59 +02:00
parent d0e5b625fd
commit 5f16b9837c

View file

@ -41,7 +41,7 @@ defmodule RDF.LiteralTest do
test "with custom datatype literals" do
datatype_literal = RDF.TestDatatypes.Age.new(42).literal
assert %Literal{literal: typed_literal} = Literal.new(datatype_literal)
assert %Literal{literal: ^datatype_literal} = Literal.new(datatype_literal)
end
test "when options without datatype given" do