summaryrefslogtreecommitdiffstats
path: root/xbmc/utils/test/TestLangCodeExpander.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/utils/test/TestLangCodeExpander.cpp')
-rw-r--r--xbmc/utils/test/TestLangCodeExpander.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/xbmc/utils/test/TestLangCodeExpander.cpp b/xbmc/utils/test/TestLangCodeExpander.cpp
new file mode 100644
index 0000000..7a6dde1
--- /dev/null
+++ b/xbmc/utils/test/TestLangCodeExpander.cpp
@@ -0,0 +1,29 @@
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#include "utils/LangCodeExpander.h"
10
11#include <gtest/gtest.h>
12
13TEST(TestLangCodeExpander, ConvertISO6391ToISO6392B)
14{
15 std::string refstr, varstr;
16
17 refstr = "eng";
18 g_LangCodeExpander.ConvertISO6391ToISO6392B("en", varstr);
19 EXPECT_STREQ(refstr.c_str(), varstr.c_str());
20}
21
22TEST(TestLangCodeExpander, ConvertToISO6392B)
23{
24 std::string refstr, varstr;
25
26 refstr = "eng";
27 g_LangCodeExpander.ConvertToISO6392B("en", varstr);
28 EXPECT_STREQ(refstr.c_str(), varstr.c_str());
29}