Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  TestResult.vdmpp   Sprache: VDM

 

--The TestResult Class

-----------------------------------------------
-- Author: Sune Wolff - 20022462
-- Created: 14/5 - 2008
-- Updated:
-- Description:  TestResult class
-----------------------------------------------

--
-- class definition
--
class TestResult

--
-- instance variables
--
instance variables

failures : seq of TestCase := []

--
-- Operations definition section
--
operations

public AddFailure: TestCase ==> ()
 AddFailure(ptst) == failures := failures ^ [ptst];

public Print: seq of char ==> ()
 Print(pstr) ==
  def - = new IO().echo(pstr ^ "\n") in skip;

public Show: () ==> ()
 Show() ==
  if failures = [] then
   Print("No failures detected")
  else 
   for failure in failures do
    Print(failure.GetName() ^ " failed");

end TestResult

Messung
CHZG
1009210097

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,268
#Domains=934,103