mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-07 07:39:37 +02:00
04/11/2022 is added
This commit is contained in:
parent
5c00a2f16a
commit
01c9360b01
207 changed files with 2082 additions and 245 deletions
1
Ingegneria del Software/1122_39/correct.txt
Normal file
1
Ingegneria del Software/1122_39/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
{x=1, y=1}, {x=0, y=0}, {x=2, y=1}, {x=2, y=0}.
|
14
Ingegneria del Software/1122_39/quest.txt
Normal file
14
Ingegneria del Software/1122_39/quest.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
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 <= 0) { if (x + y - 1 >= 0) return (1); else return (2); }
|
||||
|
||||
else {if (2*x + y - 5 >= 0) return (3); else return (4); }
|
||||
|
||||
} /* f() */
|
||||
</pre>
|
||||
Quale dei seguenti test sets consegue una branch coverage del 100% ?
|
1
Ingegneria del Software/1122_39/wrong 1.txt
Normal file
1
Ingegneria del Software/1122_39/wrong 1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
{x=1, y=1}, {x=0, y=0}, {x=2, y=1}, {x=2, y=3}.
|
1
Ingegneria del Software/1122_39/wrong 2.txt
Normal file
1
Ingegneria del Software/1122_39/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
{x=1, y=1}, {x=2, y=2}, {x=2, y=1}, {x=2, y=0}.
|
Loading…
Add table
Add a link
Reference in a new issue