Skip to content

Commit

Permalink
Update and rename testExample.wtest to tests.wtest
Browse files Browse the repository at this point in the history
  • Loading branch information
regueiranehuen authored Nov 22, 2024
1 parent a5edb65 commit f8eab9e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
9 changes: 0 additions & 9 deletions testExample.wtest

This file was deleted.

29 changes: 29 additions & 0 deletions tests.wtest
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)


}
}

0 comments on commit f8eab9e

Please sign in to comment.