-
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.
Agrego clase "Moneda" (con imagen) y tests de obstaculos
- Loading branch information
1 parent
06eed2e
commit dc23f92
Showing
3 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
// import example.* | ||
import example.* | ||
|
||
// describe "group of tests for pepita" { | ||
describe "Tests de los obstaculos" { | ||
|
||
// test "pepita has initial energy" { | ||
// assert.equals(100, pepita.energy()) | ||
// } | ||
test "Cuando el dino choca con *cactus1*, desaparecen todos los visuales" { | ||
cactus1.teChocoElDino() | ||
var verificador | ||
if(game.hasVisual(cactus1) && game.hasVisual(cactus2) && game.hasVisual(dinosaurio) && game.hasVisual(moneda)){ | ||
verificador = false | ||
} | ||
else{ | ||
verificador = true | ||
} | ||
assert.that(verificador) | ||
} | ||
test "Cuando el dino choca con *cactus2*, desaparecen todos los visuales" { | ||
cactus2.teChocoElDino() | ||
var verificador | ||
if(game.hasVisual(cactus1) && game.hasVisual(cactus2) && game.hasVisual(dinosaurio) && game.hasVisual(moneda)){ | ||
verificador = false | ||
} | ||
else{ | ||
verificador = true | ||
} | ||
assert.that(verificador) | ||
} | ||
|
||
// } | ||
} |