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

An additional semicolon (i.e., ;) at the end of do action should be ignored #18

Open
LeeKaiXuan opened this issue May 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@LeeKaiXuan
Copy link
Collaborator

Description

When accidentally adding an extra semicolon (i.e., ;) at the end of do action, PSSGen should ignore and execute the action only once time.

Scenario Code

component pss_top {
    action root_a {
        activity {
            do printStr with { str == "one ;"; };
            do printStr with { str == "two ;"; };;
            do printStr with { str == "three ;"; };;;
        }
    }

    action printStr {
        rand string str;
        exec body ASM = """printStr: {{str}}""";
    }
}

Expected Output or Behaviour

printStr: one ;
printStr: two ;
printStr: three ;

Error Message from PSSGen or JAVA

3d2
< printStr: two ;
5,6d3
< printStr: three ;
< printStr: one ;
Test Result: FAIL

Additional Context (Optional)

Please feel free to add any other context about the problem here.

@LeeKaiXuan LeeKaiXuan added the bug Something isn't working label May 8, 2024
@LeeKaiXuan LeeKaiXuan self-assigned this May 8, 2024
LeeKaiXuan added a commit that referenced this issue May 8, 2024
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