Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

La consulta del estado de un led debería tener dos casos de prueba #3

Open
evolentini opened this issue Sep 5, 2021 · 0 comments
Open

Comments

@evolentini
Copy link

Para asegurarse de que una función que retorna el estado de un led funciona correctamente deberían plantearse dos casos de prueba: consultar un led encendido y consultar un led apagado.

/* Prueba para que se puedan consultar el estado de un LED. */
void test_estado_leds (void)
{
int estado, led = 2;
LedsTurnOn(led);
estado = LedsState(led);
TEST_ASSERT_EQUAL_HEX16(estado, ledsvirtuales);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant