Skip to content

Commit a9ebd99

Browse files
rubensworksgkellogg
authored andcommitted
Fix error codes in tests being emitted as IRIs
1 parent cfd3b3b commit a9ebd99

8 files changed

+177
-176
lines changed

tests/compact-manifest.jsonld

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@
12461246
"option": {"specVersion": "json-ld-1.0"},
12471247
"input": "compact/e001-in.jsonld",
12481248
"context": "compact/e001-context.jsonld",
1249-
"expect": "compaction to list of lists"
1249+
"expectErrorCode": "compaction to list of lists"
12501250
}, {
12511251
"@id": "#te002",
12521252
"@type": [ "jld:NegativeEvaluationTest", "jld:CompactTest" ],
@@ -1255,15 +1255,15 @@
12551255
"option": {"specVersion": "json-ld-1.1"},
12561256
"input": "compact/e002-in.jsonld",
12571257
"context": "compact/e002-context.jsonld",
1258-
"expect": "IRI confused with prefix"
1258+
"expectErrorCode": "IRI confused with prefix"
12591259
}, {
12601260
"@id": "#ten01",
12611261
"@type": [ "jld:NegativeEvaluationTest", "jld:CompactTest" ],
12621262
"name": "Nest term not defined",
12631263
"purpose": "Transparent Nesting",
12641264
"input": "compact/en01-in.jsonld",
12651265
"context": "compact/en01-context.jsonld",
1266-
"expect": "invalid @nest value",
1266+
"expectErrorCode": "invalid @nest value",
12671267
"option": {"specVersion": "json-ld-1.1"}
12681268
}, {
12691269
"@id": "#tep05",
@@ -1272,7 +1272,7 @@
12721272
"purpose": "If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.",
12731273
"input": "compact/ep05-in.jsonld",
12741274
"context": "compact/ep05-context.jsonld",
1275-
"expect": "processing mode conflict",
1275+
"expectErrorCode": "processing mode conflict",
12761276
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}
12771277
}, {
12781278
"@id": "#tep06",
@@ -1282,7 +1282,7 @@
12821282
"option": {"specVersion": "json-ld-1.1"},
12831283
"input": "compact/ep06-in.jsonld",
12841284
"context": "compact/ep06-context.jsonld",
1285-
"expect": "invalid @version value"
1285+
"expectErrorCode": "invalid @version value"
12861286
}, {
12871287
"@id": "#tep07",
12881288
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1291,7 +1291,7 @@
12911291
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
12921292
"input": "compact/ep07-in.jsonld",
12931293
"context": "compact/ep07-context.jsonld",
1294-
"expect": "invalid term definition"
1294+
"expectErrorCode": "invalid term definition"
12951295
}, {
12961296
"@id": "#tep08",
12971297
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1300,7 +1300,7 @@
13001300
"option": {"specVersion": "json-ld-1.1"},
13011301
"input": "compact/ep08-in.jsonld",
13021302
"context": "compact/ep08-context.jsonld",
1303-
"expect": "invalid @prefix value"
1303+
"expectErrorCode": "invalid @prefix value"
13041304
}, {
13051305
"@id": "#tep09",
13061306
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1309,7 +1309,7 @@
13091309
"option": {"specVersion": "json-ld-1.1"},
13101310
"input": "compact/ep09-in.jsonld",
13111311
"context": "compact/ep09-context.jsonld",
1312-
"expect": "invalid term definition"
1312+
"expectErrorCode": "invalid term definition"
13131313
}, {
13141314
"@id": "#tep10",
13151315
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1318,7 +1318,7 @@
13181318
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
13191319
"input": "compact/ep10-in.jsonld",
13201320
"context": "compact/ep10-context.jsonld",
1321-
"expect": "invalid term definition"
1321+
"expectErrorCode": "invalid term definition"
13221322
}, {
13231323
"@id": "#tep11",
13241324
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1327,7 +1327,7 @@
13271327
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
13281328
"input": "compact/ep11-in.jsonld",
13291329
"context": "compact/ep11-context.jsonld",
1330-
"expect": "invalid term definition"
1330+
"expectErrorCode": "invalid term definition"
13311331
}, {
13321332
"@id": "#tep12",
13331333
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1336,7 +1336,7 @@
13361336
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
13371337
"input": "compact/ep12-in.jsonld",
13381338
"context": "compact/ep12-context.jsonld",
1339-
"expect": "invalid container mapping"
1339+
"expectErrorCode": "invalid container mapping"
13401340
}, {
13411341
"@id": "#tep13",
13421342
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1345,7 +1345,7 @@
13451345
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
13461346
"input": "compact/ep13-in.jsonld",
13471347
"context": "compact/ep13-context.jsonld",
1348-
"expect": "invalid container mapping"
1348+
"expectErrorCode": "invalid container mapping"
13491349
}, {
13501350
"@id": "#tep14",
13511351
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1354,7 +1354,7 @@
13541354
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
13551355
"input": "compact/ep14-in.jsonld",
13561356
"context": "compact/ep14-context.jsonld",
1357-
"expect": "invalid container mapping"
1357+
"expectErrorCode": "invalid container mapping"
13581358
}, {
13591359
"@id": "#tep15",
13601360
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1363,7 +1363,7 @@
13631363
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"},
13641364
"input": "compact/ep15-in.jsonld",
13651365
"context": "compact/ep15-context.jsonld",
1366-
"expect": "invalid container mapping"
1366+
"expectErrorCode": "invalid container mapping"
13671367
}, {
13681368
"@id": "#tin01",
13691369
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
@@ -1983,7 +1983,7 @@
19831983
"option": {"specVersion": "json-ld-1.1"},
19841984
"input": "compact/pr01-in.jsonld",
19851985
"context": "compact/pr01-context.jsonld",
1986-
"expect": "invalid context nullification"
1986+
"expectErrorCode": "invalid context nullification"
19871987
}, {
19881988
"@id": "#tpr02",
19891989
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -1992,7 +1992,7 @@
19921992
"option": {"specVersion": "json-ld-1.1"},
19931993
"input": "compact/pr02-in.jsonld",
19941994
"context": "compact/pr02-context.jsonld",
1995-
"expect": "protected term redefinition"
1995+
"expectErrorCode": "protected term redefinition"
19961996
}, {
19971997
"@id": "#tpr03",
19981998
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
@@ -2001,7 +2001,7 @@
20012001
"option": {"specVersion": "json-ld-1.1"},
20022002
"input": "compact/pr03-in.jsonld",
20032003
"context": "compact/pr03-context.jsonld",
2004-
"expect": "protected term redefinition"
2004+
"expectErrorCode": "protected term redefinition"
20052005
}, {
20062006
"@id": "#tpr04",
20072007
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],

tests/context.jsonld

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
88
"xsd": "http://www.w3.org/2001/XMLSchema#",
99

10-
"context": { "@type": "@id" },
11-
"expect": { "@id": "mf:result", "@type": "@id" },
12-
"frame": { "@type": "@id" },
13-
"input": { "@id": "mf:action", "@type": "@id" },
14-
"option": { "@type": "@id"},
15-
"sequence": { "@id": "mf:entries", "@type": "@id", "@container": "@list" },
16-
"redirectTo": { "@type": "@id"},
10+
"context": { "@type": "@id" },
11+
"expect": { "@id": "mf:result", "@type": "@id" },
12+
"expectErrorCode": { "@id": "mf:result" },
13+
"frame": { "@type": "@id" },
14+
"input": { "@id": "mf:action", "@type": "@id" },
15+
"option": { "@type": "@id"},
16+
"sequence": { "@id": "mf:entries", "@type": "@id", "@container": "@list" },
17+
"redirectTo": { "@type": "@id"},
1718

1819
"name": "mf:name",
1920
"purpose": "rdfs:comment",

0 commit comments

Comments
 (0)