Skip to content

Commit

Permalink
Merge pull request #1 from MIPT-ILab/branch_test
Browse files Browse the repository at this point in the history
Test BranchTestInstr output
  • Loading branch information
graudtv authored Dec 6, 2020
2 parents 88e935f + e13a993 commit 8505cbb
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 8505cbb

Please sign in to comment.