Skip to content

Commit 76f2ab1

Browse files
committed
Add a test for term selection where case of language does not match.
1 parent 911f254 commit 76f2ab1

File tree

4 files changed

+297
-163
lines changed

4 files changed

+297
-163
lines changed

tests/compact-manifest.html

Lines changed: 188 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ <h2>
407407
<dt>Type</dt>
408408
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
409409
<dt>Purpose</dt>
410-
<dd>Values with @language remain in expended form by default</dd>
410+
<dd>Values with @language remain in expanded form by default</dd>
411411
<dt>input</dt>
412412
<dd>
413413
<a href='compact/0013-in.jsonld'>compact/0013-in.jsonld</a>
@@ -4227,7 +4227,7 @@ <h2>
42274227
</dl>
42284228
</dd>
42294229
<dt id='tdi05'>
4230-
Test tdi05 simple language mapwith overriding term direction
4230+
Test tdi05 simple language map with overriding term direction
42314231
</dt>
42324232
<dd>
42334233
<dl class='entry'>
@@ -4261,7 +4261,7 @@ <h2>
42614261
</dl>
42624262
</dd>
42634263
<dt id='tdi06'>
4264-
Test tdi06 simple language mapwith overriding null direction
4264+
Test tdi06 simple language map with overriding null direction
42654265
</dt>
42664266
<dd>
42674267
<dl class='entry'>
@@ -5364,6 +5364,191 @@ <h2>
53645364
</dd>
53655365
</dl>
53665366
</dd>
5367+
<dt id='tla01'>
5368+
Test tla01 most specific term matching in @list.
5369+
</dt>
5370+
<dd>
5371+
<dl class='entry'>
5372+
<dt>id</dt>
5373+
<dd>#tla01</dd>
5374+
<dt>Type</dt>
5375+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
5376+
<dt>Purpose</dt>
5377+
<dd>The most specific term that matches all of the elements in the list, taking into account the default language, must be selected, without considering case of language.</dd>
5378+
<dt>input</dt>
5379+
<dd>
5380+
<a href='compact/la01-in.jsonld'>compact/la01-in.jsonld</a>
5381+
</dd>
5382+
<dt>context</dt>
5383+
<dd>
5384+
<a href='compact/la01-context.jsonld'>compact/la01-context.jsonld</a>
5385+
</dd>
5386+
<dt>expect</dt>
5387+
<dd>
5388+
<a href='compact/la01-out.jsonld'>compact/la01-out.jsonld</a>
5389+
</dd>
5390+
</dl>
5391+
</dd>
5392+
<dt id='tli01'>
5393+
Test tli01 coerced @list containing an empty list
5394+
</dt>
5395+
<dd>
5396+
<dl class='entry'>
5397+
<dt>id</dt>
5398+
<dd>#tli01</dd>
5399+
<dt>Type</dt>
5400+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
5401+
<dt>Purpose</dt>
5402+
<dd>Lists of Lists</dd>
5403+
<dt>input</dt>
5404+
<dd>
5405+
<a href='compact/li01-in.jsonld'>compact/li01-in.jsonld</a>
5406+
</dd>
5407+
<dt>context</dt>
5408+
<dd>
5409+
<a href='compact/li01-context.jsonld'>compact/li01-context.jsonld</a>
5410+
</dd>
5411+
<dt>expect</dt>
5412+
<dd>
5413+
<a href='compact/li01-out.jsonld'>compact/li01-out.jsonld</a>
5414+
</dd>
5415+
<dt>Options</dt>
5416+
<dd>
5417+
<dl class='options'>
5418+
<dt>specVersion</dt>
5419+
<dd>json-ld-1.1</dd>
5420+
</dl>
5421+
</dd>
5422+
</dl>
5423+
</dd>
5424+
<dt id='tli02'>
5425+
Test tli02 coerced @list containing a list
5426+
</dt>
5427+
<dd>
5428+
<dl class='entry'>
5429+
<dt>id</dt>
5430+
<dd>#tli02</dd>
5431+
<dt>Type</dt>
5432+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
5433+
<dt>Purpose</dt>
5434+
<dd>Lists of Lists</dd>
5435+
<dt>input</dt>
5436+
<dd>
5437+
<a href='compact/li02-in.jsonld'>compact/li02-in.jsonld</a>
5438+
</dd>
5439+
<dt>context</dt>
5440+
<dd>
5441+
<a href='compact/li02-context.jsonld'>compact/li02-context.jsonld</a>
5442+
</dd>
5443+
<dt>expect</dt>
5444+
<dd>
5445+
<a href='compact/li02-out.jsonld'>compact/li02-out.jsonld</a>
5446+
</dd>
5447+
<dt>Options</dt>
5448+
<dd>
5449+
<dl class='options'>
5450+
<dt>specVersion</dt>
5451+
<dd>json-ld-1.1</dd>
5452+
</dl>
5453+
</dd>
5454+
</dl>
5455+
</dd>
5456+
<dt id='tli03'>
5457+
Test tli03 coerced @list containing an deep list
5458+
</dt>
5459+
<dd>
5460+
<dl class='entry'>
5461+
<dt>id</dt>
5462+
<dd>#tli03</dd>
5463+
<dt>Type</dt>
5464+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
5465+
<dt>Purpose</dt>
5466+
<dd>Lists of Lists</dd>
5467+
<dt>input</dt>
5468+
<dd>
5469+
<a href='compact/li03-in.jsonld'>compact/li03-in.jsonld</a>
5470+
</dd>
5471+
<dt>context</dt>
5472+
<dd>
5473+
<a href='compact/li03-context.jsonld'>compact/li03-context.jsonld</a>
5474+
</dd>
5475+
<dt>expect</dt>
5476+
<dd>
5477+
<a href='compact/li03-out.jsonld'>compact/li03-out.jsonld</a>
5478+
</dd>
5479+
<dt>Options</dt>
5480+
<dd>
5481+
<dl class='options'>
5482+
<dt>specVersion</dt>
5483+
<dd>json-ld-1.1</dd>
5484+
</dl>
5485+
</dd>
5486+
</dl>
5487+
</dd>
5488+
<dt id='tli04'>
5489+
Test tli04 coerced @list containing multiple lists
5490+
</dt>
5491+
<dd>
5492+
<dl class='entry'>
5493+
<dt>id</dt>
5494+
<dd>#tli04</dd>
5495+
<dt>Type</dt>
5496+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
5497+
<dt>Purpose</dt>
5498+
<dd>Lists of Lists</dd>
5499+
<dt>input</dt>
5500+
<dd>
5501+
<a href='compact/li04-in.jsonld'>compact/li04-in.jsonld</a>
5502+
</dd>
5503+
<dt>context</dt>
5504+
<dd>
5505+
<a href='compact/li04-context.jsonld'>compact/li04-context.jsonld</a>
5506+
</dd>
5507+
<dt>expect</dt>
5508+
<dd>
5509+
<a href='compact/li04-out.jsonld'>compact/li04-out.jsonld</a>
5510+
</dd>
5511+
<dt>Options</dt>
5512+
<dd>
5513+
<dl class='options'>
5514+
<dt>specVersion</dt>
5515+
<dd>json-ld-1.1</dd>
5516+
</dl>
5517+
</dd>
5518+
</dl>
5519+
</dd>
5520+
<dt id='tli05'>
5521+
Test tli05 coerced @list containing mixed list values
5522+
</dt>
5523+
<dd>
5524+
<dl class='entry'>
5525+
<dt>id</dt>
5526+
<dd>#tli05</dd>
5527+
<dt>Type</dt>
5528+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
5529+
<dt>Purpose</dt>
5530+
<dd>Lists of Lists</dd>
5531+
<dt>input</dt>
5532+
<dd>
5533+
<a href='compact/li05-in.jsonld'>compact/li05-in.jsonld</a>
5534+
</dd>
5535+
<dt>context</dt>
5536+
<dd>
5537+
<a href='compact/li05-context.jsonld'>compact/li05-context.jsonld</a>
5538+
</dd>
5539+
<dt>expect</dt>
5540+
<dd>
5541+
<a href='compact/li05-out.jsonld'>compact/li05-out.jsonld</a>
5542+
</dd>
5543+
<dt>Options</dt>
5544+
<dd>
5545+
<dl class='options'>
5546+
<dt>specVersion</dt>
5547+
<dd>json-ld-1.1</dd>
5548+
</dl>
5549+
</dd>
5550+
</dl>
5551+
</dd>
53675552
<dt id='tm001'>
53685553
Test tm001 Indexes to object not having an @id
53695554
</dt>
@@ -7222,166 +7407,6 @@ <h2>
72227407
</dd>
72237408
</dl>
72247409
</dd>
7225-
<dt id='tli01'>
7226-
Test tli01 coerced @list containing an empty list
7227-
</dt>
7228-
<dd>
7229-
<dl class='entry'>
7230-
<dt>id</dt>
7231-
<dd>#tli01</dd>
7232-
<dt>Type</dt>
7233-
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
7234-
<dt>Purpose</dt>
7235-
<dd>Lists of Lists</dd>
7236-
<dt>input</dt>
7237-
<dd>
7238-
<a href='compact/li01-in.jsonld'>compact/li01-in.jsonld</a>
7239-
</dd>
7240-
<dt>context</dt>
7241-
<dd>
7242-
<a href='compact/li01-context.jsonld'>compact/li01-context.jsonld</a>
7243-
</dd>
7244-
<dt>expect</dt>
7245-
<dd>
7246-
<a href='compact/li01-out.jsonld'>compact/li01-out.jsonld</a>
7247-
</dd>
7248-
<dt>Options</dt>
7249-
<dd>
7250-
<dl class='options'>
7251-
<dt>specVersion</dt>
7252-
<dd>json-ld-1.1</dd>
7253-
</dl>
7254-
</dd>
7255-
</dl>
7256-
</dd>
7257-
<dt id='tli02'>
7258-
Test tli02 coerced @list containing a list
7259-
</dt>
7260-
<dd>
7261-
<dl class='entry'>
7262-
<dt>id</dt>
7263-
<dd>#tli02</dd>
7264-
<dt>Type</dt>
7265-
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
7266-
<dt>Purpose</dt>
7267-
<dd>Lists of Lists</dd>
7268-
<dt>input</dt>
7269-
<dd>
7270-
<a href='compact/li02-in.jsonld'>compact/li02-in.jsonld</a>
7271-
</dd>
7272-
<dt>context</dt>
7273-
<dd>
7274-
<a href='compact/li02-context.jsonld'>compact/li02-context.jsonld</a>
7275-
</dd>
7276-
<dt>expect</dt>
7277-
<dd>
7278-
<a href='compact/li02-out.jsonld'>compact/li02-out.jsonld</a>
7279-
</dd>
7280-
<dt>Options</dt>
7281-
<dd>
7282-
<dl class='options'>
7283-
<dt>specVersion</dt>
7284-
<dd>json-ld-1.1</dd>
7285-
</dl>
7286-
</dd>
7287-
</dl>
7288-
</dd>
7289-
<dt id='tli03'>
7290-
Test tli03 coerced @list containing an deep list
7291-
</dt>
7292-
<dd>
7293-
<dl class='entry'>
7294-
<dt>id</dt>
7295-
<dd>#tli03</dd>
7296-
<dt>Type</dt>
7297-
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
7298-
<dt>Purpose</dt>
7299-
<dd>Lists of Lists</dd>
7300-
<dt>input</dt>
7301-
<dd>
7302-
<a href='compact/li03-in.jsonld'>compact/li03-in.jsonld</a>
7303-
</dd>
7304-
<dt>context</dt>
7305-
<dd>
7306-
<a href='compact/li03-context.jsonld'>compact/li03-context.jsonld</a>
7307-
</dd>
7308-
<dt>expect</dt>
7309-
<dd>
7310-
<a href='compact/li03-out.jsonld'>compact/li03-out.jsonld</a>
7311-
</dd>
7312-
<dt>Options</dt>
7313-
<dd>
7314-
<dl class='options'>
7315-
<dt>specVersion</dt>
7316-
<dd>json-ld-1.1</dd>
7317-
</dl>
7318-
</dd>
7319-
</dl>
7320-
</dd>
7321-
<dt id='tli04'>
7322-
Test tli04 coerced @list containing multiple lists
7323-
</dt>
7324-
<dd>
7325-
<dl class='entry'>
7326-
<dt>id</dt>
7327-
<dd>#tli04</dd>
7328-
<dt>Type</dt>
7329-
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
7330-
<dt>Purpose</dt>
7331-
<dd>Lists of Lists</dd>
7332-
<dt>input</dt>
7333-
<dd>
7334-
<a href='compact/li04-in.jsonld'>compact/li04-in.jsonld</a>
7335-
</dd>
7336-
<dt>context</dt>
7337-
<dd>
7338-
<a href='compact/li04-context.jsonld'>compact/li04-context.jsonld</a>
7339-
</dd>
7340-
<dt>expect</dt>
7341-
<dd>
7342-
<a href='compact/li04-out.jsonld'>compact/li04-out.jsonld</a>
7343-
</dd>
7344-
<dt>Options</dt>
7345-
<dd>
7346-
<dl class='options'>
7347-
<dt>specVersion</dt>
7348-
<dd>json-ld-1.1</dd>
7349-
</dl>
7350-
</dd>
7351-
</dl>
7352-
</dd>
7353-
<dt id='tli05'>
7354-
Test tli05 coerced @list containing mixed list values
7355-
</dt>
7356-
<dd>
7357-
<dl class='entry'>
7358-
<dt>id</dt>
7359-
<dd>#tli05</dd>
7360-
<dt>Type</dt>
7361-
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
7362-
<dt>Purpose</dt>
7363-
<dd>Lists of Lists</dd>
7364-
<dt>input</dt>
7365-
<dd>
7366-
<a href='compact/li05-in.jsonld'>compact/li05-in.jsonld</a>
7367-
</dd>
7368-
<dt>context</dt>
7369-
<dd>
7370-
<a href='compact/li05-context.jsonld'>compact/li05-context.jsonld</a>
7371-
</dd>
7372-
<dt>expect</dt>
7373-
<dd>
7374-
<a href='compact/li05-out.jsonld'>compact/li05-out.jsonld</a>
7375-
</dd>
7376-
<dt>Options</dt>
7377-
<dd>
7378-
<dl class='options'>
7379-
<dt>specVersion</dt>
7380-
<dd>json-ld-1.1</dd>
7381-
</dl>
7382-
</dd>
7383-
</dl>
7384-
</dd>
73857410
<dt id='ttn01'>
73867411
Test ttn01 @type: @none does not compact values
73877412
</dt>

0 commit comments

Comments
 (0)