Skip to content

Commit

Permalink
The code is in the test harness. We have a proof of concept of how to…
Browse files Browse the repository at this point in the history
… test similar code.
  • Loading branch information
jwgrenning committed Aug 1, 2013
1 parent 7b86ff5 commit 9ff67ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/TestMicroControllerCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ TEST_GROUP(MicroControllerCode)
{
void setup()
{
mock("register").strictOrder();
}
void teardown()
{
Expand Down Expand Up @@ -41,11 +42,11 @@ TEST_GROUP(MicroControllerCode)
TEST(MicroControllerCode, say_hi)
{
expect_write_reg("IE", b11000000);
expect_write_reg("IE", b11010000);
expect_read_reg("TI_0", 42);
expect_read_reg("TI_0", 42);
expect_read_reg("TI_0", 42);
expect_read_reg("TI_0", 42);
expect_write_reg("IE", b11010000);

say_hi();
}
Expand Down

0 comments on commit 9ff67ae

Please sign in to comment.