Skip to content

Commit

Permalink
Some more fixes in Set_Label testing
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Jan 11, 2025
1 parent c0e4cb1 commit befd0dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/drives_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,24 +155,24 @@ TEST(Set_Label, EqualTo8CD)
TEST(Set_Label, StripEndingDot)
{
std::string output = run_Set_Label("a1234567.", false);
EXPECT_EQ("A1234567 ", output);
EXPECT_EQ("A1234567. ", output);
}
TEST(Set_Label, NoStripEndingDotCD)
{
std::string output = run_Set_Label("a1234567.", true);
EXPECT_EQ("a1234567 ", output);
EXPECT_EQ("a1234567. ", output);
}

// Just to make sure this function doesn't clean invalid DOS labels
TEST(Set_Label, InvalidCharsEndingDot)
{
std::string output = run_Set_Label("?*':&@(..", false);
EXPECT_EQ("?*':&@(.", output);
EXPECT_EQ("?*':&@(.. ", output);
}
TEST(Set_Label, InvalidCharsEndingDotCD)
{
std::string output = run_Set_Label("?*':&@(..", true);
EXPECT_EQ("?*':&@(..", output);
EXPECT_EQ("?*':&@(.. ", output);
}

} // namespace

0 comments on commit befd0dc

Please sign in to comment.