mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-11 21:52:40 +00:00
Import/Export signature files as CSV
This commit is contained in:
parent
f431b18675
commit
a6114bad34
16 changed files with 306 additions and 105 deletions
Source/UnitTests/Common
|
@ -16,3 +16,27 @@ TEST(StringUtil, JoinStrings)
|
|||
EXPECT_EQ("a, bb, c", JoinStrings({"a", "bb", "c"}, ", "));
|
||||
EXPECT_EQ("???", JoinStrings({"?", "?"}, "?"));
|
||||
}
|
||||
|
||||
TEST(StringUtil, StringBeginsWith)
|
||||
{
|
||||
EXPECT_EQ(true, StringBeginsWith("abc", "a"));
|
||||
EXPECT_EQ(false, StringBeginsWith("abc", "b"));
|
||||
EXPECT_EQ(true, StringBeginsWith("abc", "ab"));
|
||||
EXPECT_EQ(false, StringBeginsWith("a", "ab"));
|
||||
EXPECT_EQ(false, StringBeginsWith("", "a"));
|
||||
EXPECT_EQ(false, StringBeginsWith("", "ab"));
|
||||
EXPECT_EQ(true, StringBeginsWith("abc", ""));
|
||||
EXPECT_EQ(true, StringBeginsWith("", ""));
|
||||
}
|
||||
|
||||
TEST(StringUtil, StringEndsWith)
|
||||
{
|
||||
EXPECT_EQ(true, StringEndsWith("abc", "c"));
|
||||
EXPECT_EQ(false, StringEndsWith("abc", "b"));
|
||||
EXPECT_EQ(true, StringEndsWith("abc", "bc"));
|
||||
EXPECT_EQ(false, StringEndsWith("a", "ab"));
|
||||
EXPECT_EQ(false, StringEndsWith("", "a"));
|
||||
EXPECT_EQ(false, StringEndsWith("", "ab"));
|
||||
EXPECT_EQ(true, StringEndsWith("abc", ""));
|
||||
EXPECT_EQ(true, StringEndsWith("", ""));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue