-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add linking tests #9
base: feature/langium-project
Are you sure you want to change the base?
feat: Add linking tests #9
Conversation
aaae68e
to
183a00e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple points here, rest looks really good! I would also rebase your one commit (or cherry-pick, might be easier) onto the latest changes that were force pushed onto the feature/langium-project branch, so we don't see the old primary commit here too.
describe('Declarations and labels', async () => { | ||
const text = ` | ||
Control: procedure options(main); | ||
call <|>A('ok'); // invoke the 'A' subroutine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would write something like ok!
with an extra char, otherwise the compiler complains about the type, since it's expecting a char(3)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, good catch! Should we also change this string as well in the parsing tests? https://github.com/TypeFox/zowe-pli-language-support/blob/feature/langium-project/packages/language/test/parsing.test.ts#L93
|
||
describe('Qualified names', async () => { | ||
const text = ` | ||
0DCL 1 <|TWO_DIM_TABLE|>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like the prior program I would wrap this with a main procedure, otherwise the compiler won't take it. The 0 before the DCL
usage is also optional in this case, since that's for the pre-processor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done similarly to the parsing tests, where I wrap the test programs with a main procedure: https://github.com/TypeFox/zowe-pli-language-support/pull/9/files#diff-6e9ceab833d04f3a6b234d1519334012358bc20e2fcee996a49f34618061f6a1R28
Will this be sufficient?
91e9352
to
4e07d32
Compare
970b4de
to
c4c7842
Compare
No description provided.