Skip to content

Add checks for terms including a colon #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 24, 2019
Merged

Conversation

gkellogg
Copy link
Member

@gkellogg gkellogg commented Apr 24, 2019

which do not expand in a natural way.

For w3c/json-ld-syntax#155


Preview | Diff

…ovide for terms ending with a colon.

Modify, obsolete and add tests accordingly.
Copy link
Contributor

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from an eye balling it perspective. Left a minor naming consistency comment.

"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
"name": "Term definition with @id: @type",
"purpose": "Expanding term mapping to @type uses @type syntax now illegal",
"input": "expand/e043-in.jsonld",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The label #te043 here doesn't match the input file name prefix e043 (same for e044) -- which seems to break the naming convention, so I suspect this is a typo. Just checking here, was this intentional or a typo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests all of an identifier such as #txxxx with corresponding files expand/xxxx-in.jsonld and expand/xxx-out.jsonld. In this case the #te043 is consistent with the file named e043-in and follows the same pattern as that for #te042.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the convention has been the test ids have a t prefix, the file names don't. Is that what you meant?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the ids all start with a "t", the filename's don't. This convention was established in the 1.0 days. I established the practice if replacing one or two leading zeros with letters to help separate out the new tests by broad feature categorization, which helps in filtering as well.

The #texxx tests typically are for errors, some of which previously came from a separate error manifest.

@gkellogg gkellogg merged commit b0ba962 into master Apr 24, 2019
@gkellogg gkellogg deleted the issue-155-IRI-terms branch April 24, 2019 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants