Skip to content
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

Draft
wants to merge 2 commits into
base: feature/langium-project
Choose a base branch
from

Conversation

didrikmunther
Copy link
Collaborator

No description provided.

@msujew msujew force-pushed the feature/langium-project branch from aaae68e to 183a00e Compare January 15, 2025 15:26
Copy link
Member

@montymxb montymxb left a 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
Copy link
Member

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).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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


describe('Qualified names', async () => {
const text = `
0DCL 1 <|TWO_DIM_TABLE|>,
Copy link
Member

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.

Copy link
Collaborator Author

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?

@msujew msujew force-pushed the feature/langium-project branch 2 times, most recently from 91e9352 to 4e07d32 Compare January 16, 2025 13:19
@didrikmunther didrikmunther force-pushed the feature/didrik/add-linking-tests branch from 970b4de to c4c7842 Compare January 18, 2025 08:40
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.

2 participants