[r247]: / trunk / Library / POUs / FB_TestSuite / AssertTrue / svnobj  Maximize  Restore  History

Download this file

45 lines (45 with data), 3.4 kB

Gx_l 
!0…jüoçúcàı±İdSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
longTagText
šAssertEquals_BOOL(Expected := TRUE, Actual := Condition, Message := Message);InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}(* œAsserts that a condition is true. If it is not, an assertion error is created.Parameters:L	| Condition   Condition to be checkedx	| Message   The identifying message for the assertion error"Positive example:... code-block:: codesys     VAR:         a : WORD := 16#ABCD;:         b : WORD := 16#0123;     END_VARP     TEST('AssertThatWORDsAreNotEqual');L     AssertTrue(Condition := (a <> b),\                Message := 'WORDs are equal');*     TEST_FINISHED();  Failing example:!J     TEST('AssertThatWORDsAreEqual');"J     AssertTrue(Condition := (a = b),#d                Message := 'WORDs are not equal');$*)%0METHOD PUBLIC AssertTrue&VAR_INPUT'`    Condition : BOOL; // Condition to be checked(š    Message : T_MaxString; // The identifying message for the assertion error)END_VARĞĞĞEĞĞ	
­ÚĞ-
ĞĞE)ĞĞ	
­8ÚĞ-ĞĞ	
­YÚĞ-ĞĞ	
­9ÚĞ-ĞĞ	
­:ÚĞ-ĞĞ	
­;ÚĞ-ĞĞ	
­<ÚĞ-ĞĞ	
­=ÚĞ-ĞĞ	
­>ÚĞ-ĞĞ	
­?ÚĞ-ĞĞ	
­@ÚĞ-ĞĞ	
­AÚĞ-ĞĞ	
­BÚĞ-ĞĞ	
­CÚĞ-ĞĞ	
­DÚĞ-ĞĞ	
­EÚĞ-ĞĞ	
­FÚĞ-ĞĞ	
­GÚĞ-ĞĞ	
­HÚĞ-ĞĞ	
­IÚĞ-ĞĞ	
­JÚĞ-ĞĞ	
­KÚĞ-ĞĞ	
­LÚĞ- ĞĞ	
­MÚĞ-ĞĞ	
­NÚĞ-ĞĞ	
­OÚĞ-ĞĞ	
­PÚĞ-ĞĞ	
­QÚĞ-ĞĞ	
­RÚĞ-ĞĞ	
­SÚĞ-ĞĞ	
­TÚĞ-ĞĞ	
­UÚĞ-!ĞĞ	
­VÚĞ-"ĞĞ	
­WÚĞ-#ĞĞ	
­ÚĞ-ĞĞ	
­XÚĞ-$ĞĞ	
­
ÚĞ-ĞĞ	
­ÚĞ-%ĞĞ	
­ÚĞ-&ĞĞ	
­ÚĞ-'ĞĞ	
­	ÚĞ-(ĞĞ	
­ÚĞ-)