mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 14:59:38 +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/ingsw/0210_14/correct.txt
Normal file
1
legacy/Data/ingsw/0210_14/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
F(x, y, z) = if (x > y) then (z == x) else (z == y + 1)
|
9
legacy/Data/ingsw/0210_14/quest.txt
Normal file
9
legacy/Data/ingsw/0210_14/quest.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
Un test oracle per un programma P è una funzione booleana che ha come inputs gli inputs ed outputs di P e ritorna true se e solo se il valore di output di P (con i dati inputs) è quello atteso dalle specifiche.
|
||||
Si consideri la seguente funzione C:
|
||||
-----------
|
||||
int f(int x, int y) {
|
||||
int z = x;
|
||||
while ( (x <= z) && (z <= y) ) { z = z + 1; }
|
||||
return (z);
|
||||
}
|
||||
Siano x, y, gli inputs del programma (f nel nostro caso) e z l'output. Assumendo il programma corretto, quale delle seguenti funzioni booleane F(x, y, z) è un test oracle per la funzione f.
|
1
legacy/Data/ingsw/0210_14/wrong1.txt
Normal file
1
legacy/Data/ingsw/0210_14/wrong1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
F(x, y, z) = if (x > y) then (z == x + 1) else (z == y + 1)
|
1
legacy/Data/ingsw/0210_14/wrong2.txt
Normal file
1
legacy/Data/ingsw/0210_14/wrong2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
F(x, y, z) = (z == y + 1)
|
Loading…
Add table
Add a link
Reference in a new issue