Trailing bit of requirement after a colon
Hi
If I have a variable name with a colon ":" in it (in this case the variable was a ratio) FRET will save it ok and say that it's fomalised, but checking the Temporal Logic output shows that anything after the colon is lost.
The only hint to this in FRET is that the text after the colon is not highlighted, but that's a very subtle hint that it's ignoring the remainder of the requirement. It would be nice if this still showed in the UI as an error.
Hi @mluckcuck,
colon is not supported in a variable name. If you use colon in a variable used in the condition or scope fields, the parser returns an error (see screenshot below). In the response field it turns the text after the colon black (meaning that it is not parsing). We will also add an error message.
If you want to use colon in a variable name (or any character that is not supported by the ID grammar field), you can write the variable name within quotes, e.g., "p:2"
Thanks,
Anastasia
This enhancement has been added and it will be part of the next FRET release.
Thank you @mluckcuck. Stay tuned!