This file contains hidden or 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
/** | |
* Descricao: Teste para Salvar, Listar, Detalhar e Excluir Pessoa. | |
* | |
*/ | |
public class TestePessoaVisual extends TesteSelenium { | |
/** | |
* Descricao: Teste para Listar as Pessoa cadastradas no sistema. | |
* | |
*/ |
This file contains hidden or 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
public void testListarPessoas() throws Exception { | |
//PREPARACAO DO TESTE | |
//Considerar as 4 pessoas cadastradas para apresentação na listagem. | |
//Logar no sistema com o usuário Administrador. | |
doLogin(); | |
//TESTE E VERIFICACAO | |
//Verificar se a opcao "Pessoas" está presente no menu lateral. | |
menuAdmin.verificarTextos(); |
This file contains hidden or 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
public void testListarPessoas() throws Exception { | |
//PREPARACAO DO TESTE | |
//Considerar as 4 pessoas cadastradas para apresentação na listagem. | |
//Logar no sistema com o usuário Administrador. | |
doLogin(); | |
//TESTE E VERIFICACAO | |
//Verificar se a opcao "Pessoas" está presente no menu lateral. | |
menuAdmin.verificarTextos(); |
This file contains hidden or 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
int calcularResultado(char *linha) { | |
int i, j; | |
int resultado = 0; | |
int arrayJogadas[21]; | |
j = getJogadas(linha,arrayJogadas); | |
for (i = 0; i < j; i++) { | |
resultado += arrayJogadas[i]; |
This file contains hidden or 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
for(i = 0;i < tamanho;i++){ | |
if(i+1 < tamanho && (arrayJogadas[i] + arrayJogadas[i + 1] == 10)){ | |
if (i+2 >= tamanho) { | |
return -1; | |
} else { | |
resultado += arrayJogadas[i] + arrayJogadas[i + 1] + arrayJogadas[i + 2]; | |
i++; | |
} |
This file contains hidden or 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
int calcularResultado(char *linha) { | |
int arrayJogadas[21]; | |
int tamanho = getJogadas(linha,arrayJogadas); | |
return calcularResultadoInteiros(arrayJogadas, tamanho); | |
} |
This file contains hidden or 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
void TesteNaoConsideraLixoFimArray(CuTest *tc) { | |
int arrayJogadas[6] = {9,1,1,0,10,10}; | |
//quantidade jogadas(qtdJogadas) menor que arrayJogadas. Nao deve somar os 10`s | |
int qtdJogadas = 4; | |
CuAssertIntEquals(tc,12,calcularResultadoInteiros(arrayJogadas,qtdJogadas)); | |
} |
This file contains hidden or 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
for(i = 0; i < tamanho; i++){ | |
frame ++; | |
//terceira bola do ultimo frame | |
if (frame == 11) { | |
return resultado; | |
} | |
//verifica se o frame esta completo | |
if((i+1 < tamanho)) { |
This file contains hidden or 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
int qtdFrames = qtdBolas/2 + qtdBolas%2; | |
for(frame = 0; frame < qtdFrames; frame++){ | |
int indiceBola1 = frame*2; | |
//terceira bola do ultimo frame | |
if (frame == 10) { | |
return resultado; | |
} |
This file contains hidden or 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
(ns args_kata.core) | |
(def default-values { | |
Boolean false | |
String "" | |
Integer 0 | |
}) | |
(defn convert-value [type value] | |
(condp = type |
OlderNewer