Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/CashDispenserPP/test/   (Vienna Development Method ©)  Datei vom 13.4.2020 mit Größe 575 B image not shown  

Quelle  GetBalance.vdmpp

  Sprache: VDM
 

\section{The GetBalance Testing Class}

The event GetBalance corresponds to a client asking for a balance at one of the tills in this system.

\begin{vdm_al}
class GetBalance is subclass of Event

instance variables

  tillid : System`TillId;

operations

  public Init : System`TillId ==> GetBalance
  Init(tid) ==
    (tillid := tid;
     return self);

  public execute : System ==> Test`TestResult
  execute(sys) ==
    let till = sys.GetTill(tillid)
    in
      if till.CardValidated()
      then till.GetBalance()
      else return false;

end GetBalance
\end{vdm_al}

Messung V0.5 in Prozent
C=100 H=94 G=96

¤ Dauer der Verarbeitung: 0.11 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.