json_ld: failing of expand-0062 and expand-0029 is caused by a bug in URI.merge and should work in Elixir 1.5
This commit is contained in:
parent
949a4a0f31
commit
e6a65ff56a
2 changed files with 11 additions and 2 deletions
4
mix.exs
4
mix.exs
|
@ -12,7 +12,7 @@ defmodule JSON.LD.Mixfile do
|
|||
config_path: "../../config/config.exs",
|
||||
deps_path: "../../deps",
|
||||
lockfile: "../../mix.lock",
|
||||
elixir: "~> 1.3",
|
||||
elixir: "~> 1.4", # TODO: "~> 1.5" for the fix of URI.merge
|
||||
build_embedded: Mix.env == :prod,
|
||||
start_permanent: Mix.env == :prod,
|
||||
package: package(),
|
||||
|
@ -32,7 +32,7 @@ defmodule JSON.LD.Mixfile do
|
|||
end
|
||||
|
||||
def application do
|
||||
[applications: [:logger]]
|
||||
[extra_applications: [:logger]]
|
||||
end
|
||||
|
||||
defp deps do
|
||||
|
|
|
@ -8,7 +8,16 @@ defmodule JSON.LD.TestSuite.ExpandTest do
|
|||
end
|
||||
|
||||
test_cases("expand")
|
||||
# TODO: Fixed in Elixir 1.5
|
||||
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0029] end)
|
||||
# |> 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
|
||||
@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
|
||||
@tag :test_suite
|
||||
@tag :expand_test_suite
|
||||
@tag data: test_case
|
||||
|
|
Loading…
Reference in a new issue