-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test protected flag retained during redefinition.
- Add expand and toRdf tests to check protection flag is retained when a term is redefined the same as a protected term, and then redefined as something else, triggering a failure. - See 4.1.11 https://www.w3.org/TR/json-ld11/#protected-term-definitions about similar overrides that don't change semantics of the protected term. - See 4.2.2.27.2 https://www.w3.org/TR/json-ld-api/#algorithm-0 about retaining the value of protected flag.
- Loading branch information
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"@context": [ | ||
{ | ||
"@protected": true, | ||
"protected": "ex:protected" | ||
}, | ||
{ | ||
"protected": "ex:protected" | ||
}, | ||
{ | ||
"protected": "ex:unprotected" | ||
} | ||
], | ||
"protected": "fail / protection not retained during redefinition" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"@context": [ | ||
{ | ||
"@protected": true, | ||
"protected": "ex:protected" | ||
}, | ||
{ | ||
"protected": "ex:protected" | ||
}, | ||
{ | ||
"protected": "ex:unprotected" | ||
} | ||
], | ||
"protected": "fail / protection not retained during redefinition" | ||
} |