-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename testExample.wtest to tests.wtest
- Loading branch information
1 parent
a5edb65
commit f8eab9e
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import personas.* | ||
import eventos.* | ||
import emociones.* | ||
|
||
|
||
describe "Tests"{ | ||
|
||
var furia = new Furia(valorElevada=40,intensidad = 5,palabrotas=["zapallo"],cantEventos=2) | ||
var alegria = new Furia(valorElevada=40,intensidad = 5,cantEventos=3) | ||
|
||
|
||
var pepe = new Persona(edad = 13,emociones=[furia]) | ||
|
||
var perdioBoca = new Evento(descripcion="perdio boca",impacto = 100) | ||
|
||
var grupo1 = new Grupo(integrantes=[pepe]) | ||
|
||
test "Todos los integrantes del grupo1 viven el mismo evento y todas sus emociones suman un evento"{ | ||
|
||
var cantEventosFuria = furia.cantEventos() | ||
|
||
grupo1.vivirMismoEvento(perdioBoca) | ||
|
||
|
||
assert.equals(furia.cantEventos(), cantEventosFuria + 1) | ||
|
||
|
||
} | ||
} |