Skip to content

Commit

Permalink
Hecho
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBaez21 committed Oct 5, 2024
1 parent 3d9edfc commit 8c66247
Show file tree
Hide file tree
Showing 7 changed files with 1,092 additions and 5 deletions.
53 changes: 53 additions & 0 deletions log/wollok2.log

Large diffs are not rendered by default.

379 changes: 379 additions & 0 deletions log/wollok3.log

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions log/wollok4.log

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions log/wollok5.log

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions log/wollok6.log

Large diffs are not rendered by default.

629 changes: 629 additions & 0 deletions log/wollok7.log

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions pepitaTest.wtest
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ describe "Tests de Pepita" {
pepita.irA(nuevaPosicion)
assert.equals(nuevaPosicion, pepita.position())
}

//este test no logro que se ejecute correctamente, ya que en el metodo irA
//se encuentra la limitacion del tablero. Que es 10x10, pero al ejecutar el
//REPL de pepita, esta limitacion pasa a 5x5 (no encuentro el motivo)
//por ende el nido (7@8) está fuera del rango. Pero cuando ejecuto
//el juego en sí esto no ocurre. no encuentro solucion a esto.
test "Al estar en la misma posicion que el nido pepita crece" {
pepita.irA(nido.position())
assert.equals("pepita-grande.png", pepita.image())
}

game.height(10) //Agregué estas dos lineas para que funcione correctamente.
game.width(10)
pepita.irA(nido.position())
assert.equals("pepita-grande.png", pepita.image())

}
}

0 comments on commit 8c66247

Please sign in to comment.