Add test of RDF.IRI.merge/2 with fragments
This commit is contained in:
parent
3041204ff7
commit
3ca4207a14
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ defmodule RDF.IRITest do
|
||||||
assert IRI.merge("http://example.com/", "foo#") == IRI.new("http://example.com/foo#")
|
assert IRI.merge("http://example.com/", "foo#") == IRI.new("http://example.com/foo#")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "with a fragment" do
|
||||||
|
assert IRI.merge("http://example.com/", "#foo") == IRI.new("http://example.com/#foo")
|
||||||
|
end
|
||||||
|
|
||||||
@tag skip: "TODO: proper validation"
|
@tag skip: "TODO: proper validation"
|
||||||
test "with invalid iris" do
|
test "with invalid iris" do
|
||||||
Enum.each(invalid_iris(), fn invalid_iri ->
|
Enum.each(invalid_iris(), fn invalid_iri ->
|
||||||
|
|
Loading…
Reference in a new issue