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

Seria mejor cambiar esta prueba #2

Open
evolentini opened this issue May 30, 2021 · 0 comments
Open

Seria mejor cambiar esta prueba #2

evolentini opened this issue May 30, 2021 · 0 comments

Comments

@evolentini
Copy link

Seria mejor cambiar esta prueba

// Se pueden apagar todos los LEDs de una vez.
void test_TurnOffAllLeds(void)
{
Led_TurnOn(3);
Led_TurnOn(LED);
Led_TurnOffAll();
TEST_ASSERT_EQUAL_HEX16(0x0000, ledsVirtuales);
}

por

// Se pueden apagar todos los LEDs de una vez.
void test_TurnOffAllLeds(void)
{
    Led_TurnOnAll();
    Led_TurnOffAll();
    TEST_ASSERT_EQUAL_HEX16(0x0000, ledsVirtuales);
}

De esta forma se revisa que la función apague realmente todos los leds.

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