Skip to content

Commit

Permalink
Consolidate string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
osagie98 committed Oct 1, 2024
1 parent 8d2173d commit 7c3dcf2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions starboard/common/string_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ TEST(StringTest, SplitString) {
for (int i = 0; i < vec.size(); ++i) {
ASSERT_EQ(output[i], vec[i]);
}
}

TEST(StringTest, SplitStringEmpty) {
std::string str;
std::vector<std::string> output = SplitString(str, '.');
str = "";
output = SplitString(str, '.');
EXPECT_TRUE(output.empty());
}

Expand Down

0 comments on commit 7c3dcf2

Please sign in to comment.