Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 23, 2024
1 parent 202d0d6 commit ae684be
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cpp/test/bus_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SCSI target emulator and SCSI tools for the Raspberry Pi
//
// Copyright (C) 2022-2023 Uwe Seimet
// Copyright (C) 2022-2024 Uwe Seimet
//
//---------------------------------------------------------------------------

Expand Down Expand Up @@ -114,15 +114,15 @@ TEST(BusTest, GetPhase)

TEST(BusTest, GetPhaseName)
{
EXPECT_EQ("busfree", Bus::GetPhaseName(phase_t::busfree));
EXPECT_EQ("arbitration", Bus::GetPhaseName(phase_t::arbitration));
EXPECT_EQ("selection", Bus::GetPhaseName(phase_t::selection));
EXPECT_EQ("reselection", Bus::GetPhaseName(phase_t::reselection));
EXPECT_EQ("command", Bus::GetPhaseName(phase_t::command));
EXPECT_EQ("datain", Bus::GetPhaseName(phase_t::datain));
EXPECT_EQ("dataout", Bus::GetPhaseName(phase_t::dataout));
EXPECT_EQ("status", Bus::GetPhaseName(phase_t::status));
EXPECT_EQ("msgin", Bus::GetPhaseName(phase_t::msgin));
EXPECT_EQ("msgout", Bus::GetPhaseName(phase_t::msgout));
EXPECT_EQ("BUS FREE", Bus::GetPhaseName(phase_t::busfree));
EXPECT_EQ("ARBITRATION", Bus::GetPhaseName(phase_t::arbitration));
EXPECT_EQ("SELECTION", Bus::GetPhaseName(phase_t::selection));
EXPECT_EQ("RESELECTION", Bus::GetPhaseName(phase_t::reselection));
EXPECT_EQ("COMMAND", Bus::GetPhaseName(phase_t::command));
EXPECT_EQ("DATA IN", Bus::GetPhaseName(phase_t::datain));
EXPECT_EQ("DATA OUT", Bus::GetPhaseName(phase_t::dataout));
EXPECT_EQ("STATUS", Bus::GetPhaseName(phase_t::status));
EXPECT_EQ("MESSAGE IN", Bus::GetPhaseName(phase_t::msgin));
EXPECT_EQ("MESSAGE OUT", Bus::GetPhaseName(phase_t::msgout));
EXPECT_EQ("reserved", Bus::GetPhaseName(phase_t::reserved));
}

0 comments on commit ae684be

Please sign in to comment.