-
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.
- Loading branch information
1 parent
e65faa0
commit a35d98f
Showing
13 changed files
with
71 additions
and
35 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,20 @@ | ||
import example.* | ||
|
||
test "vida del militar inicial en 3" { | ||
assert.equals(3, militar.cuantaVida()) | ||
} | ||
|
||
test "La vida es 4 cuando el militar toca una manzana roja" { | ||
const manzanaRoja1 = new ManzanaRoja() | ||
manzanaRoja1.teComioMilitar() | ||
assert.equals(4, militar.cuantaVida()) | ||
|
||
} | ||
|
||
test "Manzana dorada hace inmune a militar" { | ||
const manzanaDorada1 = new ManzanaDorada() | ||
manzanaDorada1.teComioMilitar() | ||
const enemigo1 = new Enemigo() | ||
enemigo1.teTocoEnemigo() | ||
assert.that(manzanaDorada1.inmunidadActivada()) | ||
} |