Task #4819
closed
[template] Auxiliary test template functions
Added by Alexander Kamkin over 10 years ago.
Updated about 10 years ago.
Assignee:
Andrei Tatarnikov
Published in build:
141018
Description
- newline - puts the new line character into the test program;
- text(<some text>) - puts the text into the test program;
- comment(<some text>) - puts the comment into the test program (uses the
SL_COMMENT_STARTS_WITH
property);
- start_comment - starts the multi-line comment (uses the
ML_COMMENT_STARTS_WITH
property);
- end_comment - ends the multi-line comment (uses the
ML_COMMENT_ENDS_WITH
property).
Don't forget about documentation.
- Status changed from New to Open
- % Done changed from 0 to 10
- Status changed from Open to Resolved
- % Done changed from 10 to 100
Done in r1947.
In addition to the mentioned functions, the following functions were introduced:
1. text_
. The same as text
, but takes a lambda function that should be evaluated to text. The construct looks like this: text_ { bla-bla-bla }
2. trace
and trace_
. Similar to text
and text_
, but they work at simulation time and print text to the simulator log.
text_ и trace_ удалены. Т.к. Ruby-часть стала тоньше и все обязанности возложены на Java-часть. text и trace умеют выводить информацию о состоянии модели.
- Status changed from Resolved to Closed
- Target version changed from 2.0 to 2.1
- Published in build set to 141018
Also available in: Atom
PDF