Skip to content

Commit

Permalink
Test BranchTestInstr output
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkryukov committed Dec 6, 2020
1 parent 88e935f commit e13a993
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions simulator/modules/branch/t/unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,11 @@ TEST_CASE( "trap received", "[branch_module]")
CHECK_PORT_NOT_READY( t.env.rp_bypass);
}

TEST_CASE( "instruction dump", "[branch_module]")
{
std::ostringstream oss;
oss << BranchTestInstr( 0, 0, 0, false);
CHECK( oss.str() == "BranchTestInstr");
}

} // end of Test namespace

0 comments on commit e13a993

Please sign in to comment.