Some more fixes in Set_Label testing

This commit is contained in:
maron2000 2025-01-12 00:01:38 +09:00
parent c0e4cb1637
commit befd0dc78e

View File

@ -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