Home



Ga Terug




Vergelijk output

Creëer data


Gebruik uitvoer



Voorbeelden


Elementary Comparison Test - example 2

Elementary Comparison Test

 

Condition(s)

if x=1 and (y>10 or not (z<>-10))

then

  put "TRUE" into prediction

else

  put "FALSE" into prediction

end if

 

 

Equations

A: x=1

B: y>10

C: z<>-10

 

Test situations

 

FALSE

TRUE

A

000

100

B

101

111

C

101

100

 

 

Test Cases

 Test Case

1

2

3

     test situation

000

101

100

     prediction

FALSE

FALSE

TRUE

     determines outcome

A

BC

AC

 

A: x

0 (x<>1)

1 (x=1)

1 (x=1)

B: y

10 (y<=10)

9 (y<=10)

-1 (y<=10)

C: z

-10 (z=-10)

-11 (z<>-10)

-10 (z=-10)

 

 

 Test Case

4

 

 

     test situation

111

 

 

     prediction

TRUE

 

 

     determines outcome

AB

 

 

 

A: x

1 (x=1)

 

 

B: y

11 (y>10)

 

 

C: z

-9 (z<>-10)