Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mais um teste que jah esta passando com a implementacao atual

  • Loading branch information...
commit a838a40c82abc869d7dcf5ab32a79241d9b95543 1 parent 3017976
@HugoLnx authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 andarilho.test.js
View
12 andarilho.test.js
@@ -78,4 +78,16 @@ module("Andarilho");
same(andarilho.localizacao, [0,1]);
});
+
+ test("passo na diagonal quando valor da diagonal igual ao da direita", function() {
+ matriz = [[3, 2],
+ [4, 2]];
+
+ mapa = new Mapa(matriz);
+ coordenada_atual = [0,0];
+ andarilho = new Andarilho(mapa,coordenada_atual);
+ andarilho.da_um_passo();
+
+ same(andarilho.localizacao, [0,1]);
+ });
});
Please sign in to comment.
Something went wrong with that request. Please try again.