mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
19 lines
483 B
C++
19 lines
483 B
C++
// Copyright 2016 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Common/StringUtil.h"
|
|
|
|
TEST(StringUtil, JoinStrings)
|
|
{
|
|
EXPECT_EQ("", JoinStrings({}, ", "));
|
|
EXPECT_EQ("a", JoinStrings({"a"}, ","));
|
|
EXPECT_EQ("ab", JoinStrings({"a", "b"}, ""));
|
|
EXPECT_EQ("a, bb, c", JoinStrings({"a", "bb", "c"}, ", "));
|
|
EXPECT_EQ("???", JoinStrings({"?", "?"}, "?"));
|
|
}
|