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

Atomkraft fails on trace test assertions #145

Open
andrey-kuprianov opened this issue Sep 8, 2022 · 0 comments
Open

Atomkraft fails on trace test assertions #145

andrey-kuprianov opened this issue Sep 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@andrey-kuprianov
Copy link
Contributor

Apparently, Modelator (and by transitivity Atomkraft) doesn't negate test assertions represented as trace invariants properly.

For the following command:

atomkraft model sample --model-path models/bank/BankSendTests.tla --examples TestThreeOutcomes --traces-dir traces/bank --max_error=10 --view=ActionView

I get

Sampling TestThreeOutcomes... 
Results:
Parsing error 💥
    Parse error at BankSendTests__negated.tla:
None

Here TestThreeOutcomes is the following:

\* @type: Seq(STATE) => Bool;
TestThreeOutcomes(trace) ==
  LET outcomes == { trace[s].outcome : s \in DOMAIN trace } IN 
  Cardinality(outcomes) >= 3

Most probably we don't expect test assertions to have parameters.

@andrey-kuprianov andrey-kuprianov added the bug Something isn't working label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant