diff --git a/test/unit/dataset_test.exs b/test/unit/dataset_test.exs index 55cd118..a5406b8 100644 --- a/test/unit/dataset_test.exs +++ b/test/unit/dataset_test.exs @@ -511,22 +511,6 @@ defmodule RDF.DatasetTest do assert dataset_includes_statement?(ds, {EX.S2, EX.P2, EX.O2, EX.GraphName}) end -# @tag skip: "TODO: Requires Dataset.put with a list to differentiate a list of statements, a list of Descriptions and list of Graphs. Do we want to support mixed lists also?" -# test "a list of Descriptions" do -# ds = Dataset.new([{EX.S1, EX.P1, EX.O1}, {EX.S2, EX.P2, EX.O2}]) -# |> RDF.Dataset.put([ -# Description.new(EX.S1, [{EX.P2, EX.O3}, {EX.P2, bnode(:foo)}]), -# Description.new(EX.S2, [{EX.P2, EX.O3}, {EX.P2, EX.O4}]) -# ]) -# -# assert Dataset.triple_count(ds) == 5 -# assert dataset_includes_statement?(ds, {EX.S1, EX.P1, EX.O1}) -# assert dataset_includes_statement?(ds, {EX.S1, EX.P2, EX.O3}) -# assert dataset_includes_statement?(ds, {EX.S1, EX.P2, bnode(:foo)}) -# assert dataset_includes_statement?(ds, {EX.S2, EX.P2, EX.O3}) -# assert dataset_includes_statement?(ds, {EX.S2, EX.P2, EX.O4}) -# end - test "simultaneous use of the different forms to address the default context" do ds = RDF.Dataset.put(dataset(), [ {EX.S, EX.P, EX.O1}, diff --git a/test/unit/graph_test.exs b/test/unit/graph_test.exs index d475f34..f659a16 100644 --- a/test/unit/graph_test.exs +++ b/test/unit/graph_test.exs @@ -225,22 +225,6 @@ defmodule RDF.GraphTest do assert graph_includes_statement?(g, {EX.S2, EX.P2, EX.O2}) end - @tag skip: "TODO: Requires Graph.put with a list to differentiate a list of statements and a list of Descriptions. Do we want to support mixed lists also?" - test "a list of Descriptions" do - g = Graph.new([{EX.S1, EX.P1, EX.O1}, {EX.S2, EX.P2, EX.O2}]) - |> RDF.Graph.put([ - Description.new(EX.S1, [{EX.P2, EX.O3}, {EX.P2, bnode(:foo)}]), - Description.new(EX.S2, [{EX.P2, EX.O3}, {EX.P2, EX.O4}]) - ]) - - assert Graph.triple_count(g) == 5 - assert graph_includes_statement?(g, {EX.S1, EX.P1, EX.O1}) - assert graph_includes_statement?(g, {EX.S1, EX.P2, EX.O3}) - assert graph_includes_statement?(g, {EX.S1, EX.P2, bnode(:foo)}) - assert graph_includes_statement?(g, {EX.S2, EX.P2, EX.O3}) - assert graph_includes_statement?(g, {EX.S2, EX.P2, EX.O4}) - end - test "a Graph" do g = Graph.new([