mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 18:59:37 +02:00
Adapt to new bot structure
This commit is contained in:
parent
ff7e08ada9
commit
3f84e1d831
3414 changed files with 41525 additions and 709 deletions
1
legacy/Data/Questions/ingsw/1122_26/correct.txt
Normal file
1
legacy/Data/Questions/ingsw/1122_26/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Test set: {x=3, y=6}, {x=0, y=0}, {x=15, y=0}, {x=9, y=0}
|
15
legacy/Data/Questions/ingsw/1122_26/quest.txt
Normal file
15
legacy/Data/Questions/ingsw/1122_26/quest.txt
Normal 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% ?
|
1
legacy/Data/Questions/ingsw/1122_26/wrong 1.txt
Normal file
1
legacy/Data/Questions/ingsw/1122_26/wrong 1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Test set: {x=3, y=6}, {x=2, y=1}, {x=15, y=0}, {x=9, y=0}
|
1
legacy/Data/Questions/ingsw/1122_26/wrong 2.txt
Normal file
1
legacy/Data/Questions/ingsw/1122_26/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Test set: {x=3, y=6}, {x=0, y=0}, {x=15, y=0}, {x=10, y=3}
|
Loading…
Add table
Add a link
Reference in a new issue