\begin{vdm_al} ----------------------------------------------- -- Class: TestTrafficData -- Description: Test the TrafficData class -----------------------------------------------
-- -- class definition -- class TestTrafficData issubclassof TestCase
public testExpired : () ==> ()
testExpired() ==
( dcl td : TrafficData := new TrafficData(<LowGrip>, pos, <NORTH>);
AssertFalse(td.Expired()); duration(15000) --should depend on Config to ensure we are above threshold
AssertFalse(td.Expired()); duration(15000) --should depend on Config to ensure we are above threshold
AssertTrue(td.Expired());
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.