Fix test of RDF.Literal.new/1 with plain datatype literals
This commit is contained in:
parent
24051c6153
commit
4fedb2cfc0
1 changed files with 3 additions and 3 deletions
|
@ -32,9 +32,9 @@ defmodule RDF.LiteralTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "with typed literals" do
|
test "with typed literals" do
|
||||||
Enum.each Datatype.Registry.datatypes() -- [RDF.LangString], fn datatype ->
|
Enum.each Datatype.Registry.datatypes(), fn datatype ->
|
||||||
assert %Literal{literal: typed_literal} = Literal.new(datatype.new("foo"))
|
datatype_literal = datatype.new("foo").literal
|
||||||
assert typed_literal.__struct__ == datatype
|
assert %Literal{literal: ^datatype_literal} = Literal.new(datatype_literal)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue