From e6a65ff56ae574af50e2144e579effda02eee9d8 Mon Sep 17 00:00:00 2001 From: Marcel Otto Date: Sat, 25 Mar 2017 04:46:45 +0100 Subject: [PATCH] json_ld: failing of expand-0062 and expand-0029 is caused by a bug in URI.merge and should work in Elixir 1.5 --- mix.exs | 4 ++-- test/suite/expand_test.exs | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 823e254..1ee9809 100644 --- a/mix.exs +++ b/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 diff --git a/test/suite/expand_test.exs b/test/suite/expand_test.exs index 44e9523..4f76b27 100644 --- a/test/suite/expand_test.exs +++ b/test/suite/expand_test.exs @@ -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