Sha256: 725426c2c5412cae95348df727949ccb6ad7c7529845e94b587b27a0e2e9aa1e
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
#include "unity.h" #include "Configure.h" #include "stub_io.h" #include "mock_stub_interrupt.h" void setUp(void) { } void tearDown(void) { } void test_Configure_should_setup_timer_and_port(void) { /* Ensure known test state */ /* Setup expected call chain */ //these are defined into assembly instructions. cli_Expect(); sei_Expect(); /* Call function under test */ Configure(); /* Verify test results */ TEST_ASSERT_EQUAL(3, TCCR0B); TEST_ASSERT_EQUAL(1, TIMSK0); TEST_ASSERT_EQUAL(0x20, DDRB); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.29.1 | examples/blinky/test/test_Configure.c |
ceedling-0.29.0 | examples/blinky/test/test_Configure.c |