Added error test cases for Create Term Definition.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sun, 25 Aug 2013 22:20:19 -0700
changeset 1931 936418842952
parent 1930 ee731e6ac7d1
child 1932 fdadef5c2848
Added error test cases for Create Term Definition.
test-suite/tests/error-0010-in.jsonld
test-suite/tests/error-0011-in.jsonld
test-suite/tests/error-0012-in.jsonld
test-suite/tests/error-0013-in.jsonld
test-suite/tests/error-0014-in.jsonld
test-suite/tests/error-0015-in.jsonld
test-suite/tests/error-0016-in.jsonld
test-suite/tests/error-0017-in.jsonld
test-suite/tests/error-0018-in.jsonld
test-suite/tests/error-0019-in.jsonld
test-suite/tests/error-0020-in.jsonld
test-suite/tests/error-0021-in.jsonld
test-suite/tests/error-0022-in.jsonld
test-suite/tests/error-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0010-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "term:term"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0011-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": true
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0012-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "http://example/term", "@type": true}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0013-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "http://example/term", "@type": "_:not-an-iri"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0014-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "http://example/term", "@reverse": "http://example/reverse"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0015-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@reverse": true}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0016-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@reverse": "@reverse"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0017-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@reverse": "http://example/reverse", "@container": "@list"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0018-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": true}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0019-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "@context"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0020-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@container": "@set"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0021-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "http://example/term", "@container": "@id"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0022-in.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "http://example/term", "@language": true}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- a/test-suite/tests/error-manifest.jsonld	Sun Aug 25 18:00:21 2013 -0700
+++ b/test-suite/tests/error-manifest.jsonld	Sun Aug 25 22:20:19 2013 -0700
@@ -69,6 +69,97 @@
       "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @language",
       "input": "error-0009-in.jsonld",
       "expect": "invalid default language"
+    }, {
+      "@id": "#t0010",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Cyclic IRI mapping",
+      "purpose": "Verifies that an exception is raised on expansion when a cyclic IRI mapping is found",
+      "input": "error-0010-in.jsonld",
+      "expect": "cyclic IRI mapping"
+    }, {
+      "@id": "#t0011",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid term definition",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid term definition is found",
+      "input": "error-0011-in.jsonld",
+      "expect": "invalid term definition"
+    }, {
+      "@id": "#t0012",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid type mapping (not a string)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found",
+      "input": "error-0012-in.jsonld",
+      "expect": "invalid type mapping"
+    }, {
+      "@id": "#t0013",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid type mapping (not absolute IRI)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found",
+      "input": "error-0013-in.jsonld",
+      "expect": "invalid type mapping"
+    }, {
+      "@id": "#t0014",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid reverse property (contains @id)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found",
+      "input": "error-0014-in.jsonld",
+      "expect": "invalid reverse property"
+    }, {
+      "@id": "#t0015",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": " Invalid IRI mapping (@reverse not a string)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
+      "input": "error-0015-in.jsonld",
+      "expect": "invalid IRI mapping"
+    }, {
+      "@id": "#t0016",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid IRI mapping (not an absolute IRI)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
+      "input": "error-0016-in.jsonld",
+      "expect": "invalid IRI mapping"
+    }, {
+      "@id": "#t0017",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid reverse property (invalid @container)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found",
+      "input": "error-0017-in.jsonld",
+      "expect": "invalid reverse property"
+    }, {
+      "@id": "#t0018",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid IRI mapping (@id not a string)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
+      "input": "error-0018-in.jsonld",
+      "expect": "invalid IRI mapping"
+    }, {
+      "@id": "#t0019",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid keyword alias",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid keyword alias is found",
+      "input": "error-0019-in.jsonld",
+      "expect": "invalid keyword alias"
+    }, {
+      "@id": "#t0020",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid IRI mapping (no vocab mapping)",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found",
+      "input": "error-0020-in.jsonld",
+      "expect": "invalid IRI mapping"
+    }, {
+      "@id": "#t0021",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid container mapping",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid container mapping is found",
+      "input": "error-0021-in.jsonld",
+      "expect": "invalid container mapping"
+    }, {
+      "@id": "#t0022",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid language mapping",
+      "purpose": "Verifies that an exception is raised on expansion when a invalid language mapping is found",
+      "input": "error-0022-in.jsonld",
+      "expect": "invalid language mapping"
     }
   ]
 }