Skip to content

Commit 4b33c52

Browse files
davidlehngkellogg
authored andcommitted
Align expand and toRdf js tests.
The expand and toRdf js tests did not have aligned ids and tests were not synced between the algorithms. This syncs the tests, aligns ids, and fixes some 'name' and 'purpose' fields to be uniform.
1 parent 40aac26 commit 4b33c52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+699
-132
lines changed

tests/expand-manifest.html

Lines changed: 234 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6044,7 +6044,7 @@ <h2>
60446044
</dl>
60456045
</dd>
60466046
<dt id='tjs08'>
6047-
Test tjs08 Expand JSON literal without expanding contents
6047+
Test tjs08 Expand JSON literal with array canonicalization
60486048
</dt>
60496049
<dd>
60506050
<dl class='entry'>
@@ -6053,7 +6053,7 @@ <h2>
60536053
<dt>Type</dt>
60546054
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
60556055
<dt>Purpose</dt>
6056-
<dd>Tests expanding JSON literal does not expand terms inside json.</dd>
6056+
<dd>Tests expanding JSON literal with array canonicalization.</dd>
60576057
<dt>input</dt>
60586058
<dd>
60596059
<a href='expand/js08-in.jsonld'>expand/js08-in.jsonld</a>
@@ -6072,7 +6072,7 @@ <h2>
60726072
</dl>
60736073
</dd>
60746074
<dt id='tjs09'>
6075-
Test tjs09 Expand JSON literal aleady in expanded form
6075+
Test tjs09 Transform JSON literal with string canonicalization
60766076
</dt>
60776077
<dd>
60786078
<dl class='entry'>
@@ -6081,7 +6081,7 @@ <h2>
60816081
<dt>Type</dt>
60826082
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
60836083
<dt>Purpose</dt>
6084-
<dd>Tests expanding JSON literal in expanded form.</dd>
6084+
<dd>Tests expanding JSON literal with string canonicalization.</dd>
60856085
<dt>input</dt>
60866086
<dd>
60876087
<a href='expand/js09-in.jsonld'>expand/js09-in.jsonld</a>
@@ -6100,7 +6100,7 @@ <h2>
61006100
</dl>
61016101
</dd>
61026102
<dt id='tjs10'>
6103-
Test tjs10 Expand JSON literal aleady in expanded form with aliased keys
6103+
Test tjs10 Expand JSON literal with structural canonicalization
61046104
</dt>
61056105
<dd>
61066106
<dl class='entry'>
@@ -6109,7 +6109,7 @@ <h2>
61096109
<dt>Type</dt>
61106110
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
61116111
<dt>Purpose</dt>
6112-
<dd>Tests expanding JSON literal in expanded form with aliased keys in value object.</dd>
6112+
<dd>Tests expanding JSON literal with structural canonicalization.</dd>
61136113
<dt>input</dt>
61146114
<dd>
61156115
<a href='expand/js10-in.jsonld'>expand/js10-in.jsonld</a>
@@ -6128,7 +6128,7 @@ <h2>
61286128
</dl>
61296129
</dd>
61306130
<dt id='tjs11'>
6131-
Test tjs11 Expand JSON literal (string)
6131+
Test tjs11 Expand JSON literal with unicode canonicalization
61326132
</dt>
61336133
<dd>
61346134
<dl class='entry'>
@@ -6137,7 +6137,7 @@ <h2>
61376137
<dt>Type</dt>
61386138
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
61396139
<dt>Purpose</dt>
6140-
<dd>Tests expanding JSON literal in expanded form with aliased keys in value object.</dd>
6140+
<dd>Tests expanding JSON literal with unicode canonicalization.</dd>
61416141
<dt>input</dt>
61426142
<dd>
61436143
<a href='expand/js11-in.jsonld'>expand/js11-in.jsonld</a>
@@ -6156,7 +6156,7 @@ <h2>
61566156
</dl>
61576157
</dd>
61586158
<dt id='tjs12'>
6159-
Test tjs12 Expand JSON literal (null)
6159+
Test tjs12 Expand JSON literal with value canonicalization
61606160
</dt>
61616161
<dd>
61626162
<dl class='entry'>
@@ -6165,7 +6165,7 @@ <h2>
61656165
<dt>Type</dt>
61666166
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
61676167
<dt>Purpose</dt>
6168-
<dd>Tests expanding JSON literal in expanded form with aliased keys in value object.</dd>
6168+
<dd>Tests expanding JSON literal with value canonicalization.</dd>
61696169
<dt>input</dt>
61706170
<dd>
61716171
<a href='expand/js12-in.jsonld'>expand/js12-in.jsonld</a>
@@ -6183,6 +6183,230 @@ <h2>
61836183
</dd>
61846184
</dl>
61856185
</dd>
6186+
<dt id='tjs13'>
6187+
Test tjs13 Expand JSON literal with wierd canonicalization
6188+
</dt>
6189+
<dd>
6190+
<dl class='entry'>
6191+
<dt>id</dt>
6192+
<dd>#tjs13</dd>
6193+
<dt>Type</dt>
6194+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6195+
<dt>Purpose</dt>
6196+
<dd>Tests expanding JSON literal with wierd canonicalization.</dd>
6197+
<dt>input</dt>
6198+
<dd>
6199+
<a href='expand/js13-in.jsonld'>expand/js13-in.jsonld</a>
6200+
</dd>
6201+
<dt>expect</dt>
6202+
<dd>
6203+
<a href='expand/js13-out.jsonld'>expand/js13-out.jsonld</a>
6204+
</dd>
6205+
<dt>Options</dt>
6206+
<dd>
6207+
<dl class='options'>
6208+
<dt>specVersion</dt>
6209+
<dd>json-ld-1.1</dd>
6210+
</dl>
6211+
</dd>
6212+
</dl>
6213+
</dd>
6214+
<dt id='tjs14'>
6215+
Test tjs14 Expand JSON literal without expanding contents
6216+
</dt>
6217+
<dd>
6218+
<dl class='entry'>
6219+
<dt>id</dt>
6220+
<dd>#tjs14</dd>
6221+
<dt>Type</dt>
6222+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6223+
<dt>Purpose</dt>
6224+
<dd>Tests expanding JSON literal does not expand terms inside json.</dd>
6225+
<dt>input</dt>
6226+
<dd>
6227+
<a href='expand/js14-in.jsonld'>expand/js14-in.jsonld</a>
6228+
</dd>
6229+
<dt>expect</dt>
6230+
<dd>
6231+
<a href='expand/js14-out.jsonld'>expand/js14-out.jsonld</a>
6232+
</dd>
6233+
<dt>Options</dt>
6234+
<dd>
6235+
<dl class='options'>
6236+
<dt>specVersion</dt>
6237+
<dd>json-ld-1.1</dd>
6238+
</dl>
6239+
</dd>
6240+
</dl>
6241+
</dd>
6242+
<dt id='tjs15'>
6243+
Test tjs15 Expand JSON literal aleady in expanded form
6244+
</dt>
6245+
<dd>
6246+
<dl class='entry'>
6247+
<dt>id</dt>
6248+
<dd>#tjs15</dd>
6249+
<dt>Type</dt>
6250+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6251+
<dt>Purpose</dt>
6252+
<dd>Tests expanding JSON literal in expanded form.</dd>
6253+
<dt>input</dt>
6254+
<dd>
6255+
<a href='expand/js15-in.jsonld'>expand/js15-in.jsonld</a>
6256+
</dd>
6257+
<dt>expect</dt>
6258+
<dd>
6259+
<a href='expand/js15-out.jsonld'>expand/js15-out.jsonld</a>
6260+
</dd>
6261+
<dt>Options</dt>
6262+
<dd>
6263+
<dl class='options'>
6264+
<dt>specVersion</dt>
6265+
<dd>json-ld-1.1</dd>
6266+
</dl>
6267+
</dd>
6268+
</dl>
6269+
</dd>
6270+
<dt id='tjs16'>
6271+
Test tjs16 Expand JSON literal aleady in expanded form with aliased keys
6272+
</dt>
6273+
<dd>
6274+
<dl class='entry'>
6275+
<dt>id</dt>
6276+
<dd>#tjs16</dd>
6277+
<dt>Type</dt>
6278+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6279+
<dt>Purpose</dt>
6280+
<dd>Tests expanding JSON literal in expanded form with aliased keys in value object.</dd>
6281+
<dt>input</dt>
6282+
<dd>
6283+
<a href='expand/js16-in.jsonld'>expand/js16-in.jsonld</a>
6284+
</dd>
6285+
<dt>expect</dt>
6286+
<dd>
6287+
<a href='expand/js16-out.jsonld'>expand/js16-out.jsonld</a>
6288+
</dd>
6289+
<dt>Options</dt>
6290+
<dd>
6291+
<dl class='options'>
6292+
<dt>specVersion</dt>
6293+
<dd>json-ld-1.1</dd>
6294+
</dl>
6295+
</dd>
6296+
</dl>
6297+
</dd>
6298+
<dt id='tjs17'>
6299+
Test tjs17 Expand JSON literal (string)
6300+
</dt>
6301+
<dd>
6302+
<dl class='entry'>
6303+
<dt>id</dt>
6304+
<dd>#tjs17</dd>
6305+
<dt>Type</dt>
6306+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6307+
<dt>Purpose</dt>
6308+
<dd>Tests expanding property with @type @json to a JSON literal (string).</dd>
6309+
<dt>input</dt>
6310+
<dd>
6311+
<a href='expand/js17-in.jsonld'>expand/js17-in.jsonld</a>
6312+
</dd>
6313+
<dt>expect</dt>
6314+
<dd>
6315+
<a href='expand/js17-out.jsonld'>expand/js17-out.jsonld</a>
6316+
</dd>
6317+
<dt>Options</dt>
6318+
<dd>
6319+
<dl class='options'>
6320+
<dt>specVersion</dt>
6321+
<dd>json-ld-1.1</dd>
6322+
</dl>
6323+
</dd>
6324+
</dl>
6325+
</dd>
6326+
<dt id='tjs18'>
6327+
Test tjs18 Expand JSON literal (null)
6328+
</dt>
6329+
<dd>
6330+
<dl class='entry'>
6331+
<dt>id</dt>
6332+
<dd>#tjs18</dd>
6333+
<dt>Type</dt>
6334+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6335+
<dt>Purpose</dt>
6336+
<dd>Tests expanding property with @type @json to a JSON literal (null).</dd>
6337+
<dt>input</dt>
6338+
<dd>
6339+
<a href='expand/js18-in.jsonld'>expand/js18-in.jsonld</a>
6340+
</dd>
6341+
<dt>expect</dt>
6342+
<dd>
6343+
<a href='expand/js18-out.jsonld'>expand/js18-out.jsonld</a>
6344+
</dd>
6345+
<dt>Options</dt>
6346+
<dd>
6347+
<dl class='options'>
6348+
<dt>specVersion</dt>
6349+
<dd>json-ld-1.1</dd>
6350+
</dl>
6351+
</dd>
6352+
</dl>
6353+
</dd>
6354+
<dt id='tjs19'>
6355+
Test tjs19 Expand JSON literal with aliased @type
6356+
</dt>
6357+
<dd>
6358+
<dl class='entry'>
6359+
<dt>id</dt>
6360+
<dd>#tjs19</dd>
6361+
<dt>Type</dt>
6362+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6363+
<dt>Purpose</dt>
6364+
<dd>Tests expanding JSON literal with aliased @type.</dd>
6365+
<dt>input</dt>
6366+
<dd>
6367+
<a href='expand/js19-in.jsonld'>expand/js19-in.jsonld</a>
6368+
</dd>
6369+
<dt>expect</dt>
6370+
<dd>
6371+
<a href='expand/js19-out.jsonld'>expand/js19-out.jsonld</a>
6372+
</dd>
6373+
<dt>Options</dt>
6374+
<dd>
6375+
<dl class='options'>
6376+
<dt>specVersion</dt>
6377+
<dd>json-ld-1.1</dd>
6378+
</dl>
6379+
</dd>
6380+
</dl>
6381+
</dd>
6382+
<dt id='tjs20'>
6383+
Test tjs20 Expand JSON literal with aliased @value
6384+
</dt>
6385+
<dd>
6386+
<dl class='entry'>
6387+
<dt>id</dt>
6388+
<dd>#tjs20</dd>
6389+
<dt>Type</dt>
6390+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
6391+
<dt>Purpose</dt>
6392+
<dd>Tests expanding JSON literal with aliased @value.</dd>
6393+
<dt>input</dt>
6394+
<dd>
6395+
<a href='expand/js20-in.jsonld'>expand/js20-in.jsonld</a>
6396+
</dd>
6397+
<dt>expect</dt>
6398+
<dd>
6399+
<a href='expand/js20-out.jsonld'>expand/js20-out.jsonld</a>
6400+
</dd>
6401+
<dt>Options</dt>
6402+
<dd>
6403+
<dl class='options'>
6404+
<dt>specVersion</dt>
6405+
<dd>json-ld-1.1</dd>
6406+
</dl>
6407+
</dd>
6408+
</dl>
6409+
</dd>
61866410
<dt id='tl001'>
61876411
Test tl001 Language map with null value
61886412
</dt>

0 commit comments

Comments
 (0)