-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.wtest
52 lines (40 loc) · 1.36 KB
/
test.wtest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import intensa.*
describe "group of tests " {
const riley = new Persona(edad = 12)
const alegriaR = new Alegria(intensidad=20)
const tristezaR = new Tristeza(intensidad = 70)
const padre = new Persona(edad = 40)
const alegriaP = new Alegria(intensidad=50)
const otraP = new OtraEmocion(intensidad = 20)
const furiaP = new Furia()
const partido = new Evento(impacto=10, descripcion="hockey")
test "un adolescente " {
assert.that( riley.esAdolescente())
}
test "por explotar emocionalmente con tristeza por no melancolia" {
tristezaR.causa("escuela")
riley.tenerEmocion(alegriaR)
riley.tenerEmocion(tristezaR)
assert.that(riley.porExplotar())
}
test "no esta por explotar emocionalmente con tristeza por melancolia" {
riley.tenerEmocion(alegriaR)
riley.tenerEmocion(tristezaR)
assert.notThat(riley.porExplotar())
}
test "un evento es alterador"{
var cantidad
intensamente.agregar(riley)
riley.tenerEmocion(alegriaR)
riley.tenerEmocion(tristezaR)
tristezaR.causa("escuela")
intensamente.agregar(padre)
padre.tenerEmocion(alegriaP)
padre.tenerEmocion(furiaP)
padre.tenerEmocion(otraP)
furiaP.aprender("xxxxxxxxxx")
cantidad = intensamente.cantidadPorExplotar()
intensamente.todosViven(partido)
assert.notEquals (cantidad, intensamente.cantidadPorExplotar())
}
}