Add test of RDF.IRI.merge/2 with fragments

This commit is contained in:
Marcel Otto 2020-11-01 04:03:02 +01:00
parent 3041204ff7
commit 3ca4207a14

View file

@ -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 ->