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

Implement parsing of new test syntax #2129

Open
tstirrat15 opened this issue Nov 8, 2024 · 0 comments · May be fixed by #2133
Open

Implement parsing of new test syntax #2129

tstirrat15 opened this issue Nov 8, 2024 · 0 comments · May be fixed by #2133

Comments

@tstirrat15
Copy link
Contributor

tstirrat15 commented Nov 8, 2024

Part of #2127

This is just the parsing side of the equation; compilation and then execution of the tests will be separate steps.

An example of the syntax:

test DocumentTest {
  relationships {
    document:one viewer user:alice
    document:one editor user:bob
  }
  assertions {
    document:one    view    user:alice     // Positive assertion
    document:one    !edit   user:alice     // Negative assertion
    document:one    edit    user:bob
  }
  expected {
    document:one view (
      user:alice is viewer of document:one
      user:bob is editor of document:one
    )
    document:one edit (
      user:bob is editor of document:one
    )
  }
}

AC

This will be done when the new syntax is implemented with passing tests.

@tstirrat15 tstirrat15 linked a pull request Nov 13, 2024 that will close this issue
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 a pull request may close this issue.

1 participant