Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/HomeautomationSeqPP/   (Vienna Development Method ©)  Datei vom 13.4.2020 mit Größe 1 kB image not shown  

Quelle  TestCase.vdmpp

  Sprache: VDM
 

--The TestCase Class

-----------------------------------------------
-- Author:
-- Created:
-- Updated:
-- Description: 
-----------------------------------------------

--
-- class definition
--
class TestCase is subclass of Test

--
-- instance variables
--
instance variables

protected name : seq of char

--
-- Operations definition section
--
operations

public TestCase: seq of char ==> TestCase
 TestCase(nm) == name := nm;

public GetName: () ==> seq of char
 GetName() == return name;

protected AssertTrue: bool ==> ()
 AssertTrue(pb) == if not pb then exit <FAILURE>;

protected AssertFalse: bool ==> ()
 AssertFalse(pb) == if pb then exit <FAILURE>;

public Run: TestResult ==> ()
 Run(ptr) ==
  trap <FAILURE>
   with 
    ptr.AddFailure(self)
   in
    (SetUp();
    RunTest();
    TearDown();
    );

protected SetUp: () ==> ()
 SetUp() == is subclass responsibility;

protected RunTest: () ==> ()
 RunTest() == is subclass responsibility;

protected TearDown: () ==> ()
 TearDown() == is subclass responsibility;

end TestCase

Messung V0.5 in Prozent
C=73 H=100 G=87

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-06-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.