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

Add variables to expectations #193

Open
NadiaFinzi opened this issue Jul 23, 2018 · 3 comments
Open

Add variables to expectations #193

NadiaFinzi opened this issue Jul 23, 2018 · 3 comments

Comments

@NadiaFinzi
Copy link
Member

It would be great to be able to add variables on some expectations, to relate them to each other.

For example:

* Declares: $X
$X UsesIf
program Uses: $X

So the user could name the procedure as s/he want.

@flbulgarelli

@luchotc
Copy link
Contributor

luchotc commented Jan 8, 2019

It would be great to be able to use another inspection as a context for a new one.
This would be very useful for Scratch listeners, for example, where it's necessary to check if certain Procedure (or Rule or whatever we decide to use to implement them in Mulang) has some parameters and apply inspections to that context as well.

For example in this case:

scratch-proc

With the current tools, we can't define different expectations for this 3 listeners.

@flbulgarelli
Copy link
Member

Related to #226

@flbulgarelli
Copy link
Member

With EDL, syntax may look like:

expectation "`Pet` must declare `eat` or `feed`, and someone must send it":
  being x like in (`eat`, `feed`):
  (within `Pet` declares x) and (somewhere sends x);

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

No branches or pull requests

3 participants