Added error-0023 to test for invalid IRI when @type has a relative IRI in the context.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sun, 25 Aug 2013 22:52:52 -0700
changeset 1932 fdadef5c2848
parent 1931 936418842952
child 1933 4c83a87f7af7
Added error-0023 to test for invalid IRI when @type has a relative IRI in the context.
test-suite/tests/error-0023-in.jsonld
test-suite/tests/error-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0023-in.jsonld	Sun Aug 25 22:52:52 2013 -0700
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "term": {"@id": "http://example/term", "@type": "relative/iri"}
+  },
+  "@id": "http://example/test#example"
+}
\ No newline at end of file
--- a/test-suite/tests/error-manifest.jsonld	Sun Aug 25 22:20:19 2013 -0700
+++ b/test-suite/tests/error-manifest.jsonld	Sun Aug 25 22:52:52 2013 -0700
@@ -160,6 +160,13 @@
       "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"
+    }, {
+      "@id": "#t0023",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid IRI mapping",
+      "purpose": "Verifies that an exception is raised in IRI Expansion when a invalid IRI mapping is found",
+      "input": "error-0023-in.jsonld",
+      "expect": "invalid IRI mapping"
     }
   ]
 }