mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
Some more fixes in Set_Label testing
This commit is contained in:
parent
c0e4cb1637
commit
befd0dc78e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user