json_ld: some of the URI.merge problems are solved with Elixir 1.4.4

- but URI.merge still causes problems due to incomplete RFC3986 implementation
   see: https://github.com/elixir-lang/elixir/pull/6208
This commit is contained in:
Marcel Otto 2017-06-09 04:14:46 +02:00
commit 9c17fd1694
3 changed files with 8 additions and 18 deletions

View file

@ -12,14 +12,13 @@ defmodule JSON.LD.TestSuite.ExpandTest do
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0034] end)
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0035] end)
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0038] end)
# TODO: Fixed in Elixir 1.5
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0029] end)
# TODO: Fixed in next Elixir release
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0062] end)
|> Enum.each(fn %{"name" => name, "input" => input} = test_case ->
if input in ~w[expand-0062-in.jsonld expand-0029-in.jsonld] do
if input in ~w[expand-0062-in.jsonld] do
@tag skip: """
probably caused by a bug in Elixirs URI.merge which should be fixed with Elixir 1.5
https://github.com/elixir-lang/elixir/pull/5780
caused by a another problem in Elixirs URI.merge which should be fixed with next Elixir release
https://github.com/elixir-lang/elixir/pull/6208
"""
end
if input in ~w[expand-0034-in.jsonld expand-0035-in.jsonld expand-0038-in.jsonld] do

View file

@ -12,15 +12,7 @@ defmodule JSON.LD.TestSuite.FlattenTest do
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0034] end)
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0035] end)
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0038] end)
# TODO: Fixed in Elixir 1.5
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0029] end)
|> Enum.each(fn %{"name" => name, "input" => input} = test_case ->
if input in ~w[flatten-0029-in.jsonld] do
@tag skip: """
probably caused by a bug in Elixirs URI.merge which should be fixed with Elixir 1.5
https://github.com/elixir-lang/elixir/pull/5780
"""
end
if input in ~w[flatten-0034-in.jsonld flatten-0035-in.jsonld flatten-0038-in.jsonld] do
@tag skip: "TODO: Actually correct values are expanded, but the ordering is different."
end

View file

@ -11,14 +11,13 @@ defmodule JSON.LD.TestSuite.ToRdfTest do
test_cases("toRdf")
# TODO: Ordering problems
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0118] end)
# TODO: Fixed in Elixir 1.5
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0069] end)
# TODO: Fixed in next Elixir release
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0102] end)
|> Enum.each(fn %{"name" => name, "input" => input} = test_case ->
if input in ~w[toRdf-0069-in.jsonld toRdf-0102-in.jsonld] do
if input in ~w[toRdf-0102-in.jsonld] do
@tag skip: """
probably caused by a bug in Elixirs URI.merge which should be fixed with Elixir 1.5
https://github.com/elixir-lang/elixir/pull/5780
caused by a another problem in Elixirs URI.merge which should be fixed with next Elixir release
https://github.com/elixir-lang/elixir/pull/6208
"""
end
if input in ~w[toRdf-0118-in.jsonld] do