Added test of expandContext option.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0077-context.jsonld Sat Aug 31 14:12:41 2013 -0700
@@ -0,0 +1,11 @@
+{
+ "@context": {
+ "t1": "http://example.com/t1",
+ "t2": "http://example.com/t2",
+ "term1": "http://example.com/term1",
+ "term2": "http://example.com/term2",
+ "term3": "http://example.com/term3",
+ "term4": "http://example.com/term4",
+ "term5": "http://example.com/term5"
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0077-in.jsonld Sat Aug 31 14:12:41 2013 -0700
@@ -0,0 +1,9 @@
+{
+ "@id": "http://example.com/id1",
+ "@type": "t1",
+ "term1": "v1",
+ "term2": {"@value": "v2", "@type": "t2"},
+ "term3": {"@value": "v3", "@language": "en"},
+ "term4": 4,
+ "term5": [50, 51]
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0077-out.jsonld Sat Aug 31 14:12:41 2013 -0700
@@ -0,0 +1,9 @@
+[{
+ "@id": "http://example.com/id1",
+ "@type": ["http://example.com/t1"],
+ "http://example.com/term1": [{"@value": "v1"}],
+ "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}],
+ "http://example.com/term3": [{"@value": "v3", "@language": "en"}],
+ "http://example.com/term4": [{"@value": 4}],
+ "http://example.com/term5": [{"@value": 50}, {"@value": 51}]
+}]
\ No newline at end of file
--- a/test-suite/tests/expand-manifest.jsonld Thu Aug 29 10:42:18 2013 -0400
+++ b/test-suite/tests/expand-manifest.jsonld Sat Aug 31 14:12:41 2013 -0700
@@ -541,6 +541,16 @@
},
"input": "expand-0076-in.jsonld",
"expect": "expand-0076-out.jsonld"
+ }, {
+ "@id": "#t0077",
+ "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
+ "name": "expandContext option",
+ "purpose": "Use of the expandContext option to expand the input document",
+ "option": {
+ "expandContext": "expand-0077-context.jsonld"
+ },
+ "input": "expand-0077-in.jsonld",
+ "expect": "expand-0077-out.jsonld"
}
]
}