04/11/2022 is added

This commit is contained in:
Marco Realacci 2022-11-06 17:27:39 +01:00
parent 5c00a2f16a
commit 01c9360b01
207 changed files with 2082 additions and 245 deletions

View file

@ -0,0 +1 @@
Test set: {x=3, y=6}, {x=0, y=0}, {x=15, y=0}, {x=9, y=0}

View file

@ -0,0 +1,15 @@
Il branch coverage di un insieme di test cases è la percentuale di branch del programma che sono attraversati da almeno un test case.
Si consideri la seguente funzione C:
-----------
<pre>
int f(int x, int y) {
if (x - y - 6 <= 0) { if (x + y - 3 >= 0) return (1); else return (2); }
else {if (x + 2*y -15 >= 0) return (3); else return (4); }
} /* f() */
</pre>
Quale dei seguenti test sets consegue una branch coverage del 100% ?

View file

@ -0,0 +1 @@
Test set: {x=3, y=6}, {x=2, y=1}, {x=15, y=0}, {x=9, y=0}

View file

@ -0,0 +1 @@
Test set: {x=3, y=6}, {x=0, y=0}, {x=15, y=0}, {x=10, y=3}